mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 22:51:28 +00:00
Fixes #1685: CPToolbar calls incorrect notification method
This fix corrects the call in CPToolbar _setWindow to `removeObserver:name:object`. Before, this was calling the non-existent `removeObserver:object`, which would raise an exception. This was fixed by @schipmolder.
This commit is contained in:
+1
-1
@@ -230,7 +230,7 @@ var CPToolbarsByIdentifier = nil,
|
||||
- (void)_setWindow:(CPWindow)aWindow
|
||||
{
|
||||
if (_window)
|
||||
[[CPNotificationCenter defaultCenter] removeObserver:self object:_window];
|
||||
[[CPNotificationCenter defaultCenter] removeObserver:self name:nil object:_window];
|
||||
|
||||
_window = aWindow;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user