From e40138c2ee064b1eac18a7adef0eeed4cf5776e2 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Sat, 23 Feb 2013 17:20:38 -0500 Subject: [PATCH] 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. --- AppKit/CPToolbar.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPToolbar.j b/AppKit/CPToolbar.j index 21fbd788d..5ad5b16fb 100644 --- a/AppKit/CPToolbar.j +++ b/AppKit/CPToolbar.j @@ -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;