From efb752f1f4f4200113f6b28c570dd5ea0b6f84e9 Mon Sep 17 00:00:00 2001 From: Blair Duncan Date: Sat, 27 Feb 2010 21:44:06 -0500 Subject: [PATCH] CPOutlineView, forgot to unregister notifications prior to adding them in the last commit. --- AppKit/CPOutlineView.j | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/AppKit/CPOutlineView.j b/AppKit/CPOutlineView.j index 00d43d849..04f3eda65 100644 --- a/AppKit/CPOutlineView.j +++ b/AppKit/CPOutlineView.j @@ -435,6 +435,35 @@ CPOutlineViewDropOnItemIndex = -1; removeObserver:_outlineViewDelegate name:CPOutlineViewSelectionIsChangingNotification object:self]; + + + + if ([_outlineViewDelegate respondsToSelector:@selector(outlineViewItemWillExpand:)]) + [defaultCenter + removeObserver:_outlineViewDelegate + name:CPOutlineViewItemWillExpandNotification + object:self]; + + + if ([_outlineViewDelegate respondsToSelector:@selector(outlineViewItemDidExpand:)]) + [defaultCenter + removeObserver:_outlineViewDelegate + name:CPOutlineViewItemDidExpandNotification + object:self]; + + + if ([_outlineViewDelegate respondsToSelector:@selector(outlineViewItemWillCollapse:)]) + [defaultCenter + removeObserver:_outlineViewDelegate + name:CPOutlineViewItemWillCollapseNotification + object:self]; + + + if ([_outlineViewDelegate respondsToSelector:@selector(outlineViewItemDidCollapse:)]) + [defaultCenter + removeObserver:_outlineViewDelegate + name:CPOutlineViewItemDidCollapseNotification + object:self]; } _outlineViewDelegate = aDelegate;