propblems w/ outline view delegate and notifications
propblems w/ outline view delegate and notifications
- Subject: propblems w/ outline view delegate and notifications
- From: "email@hidden" <email@hidden>
- Date: Thu, 20 Nov 2008 13:42:44 -0800
given the following sequence of events:
1) load a window (NSWindow subclass) from a nib using an
NSWindowController subclass
2) the window contains an NSOutlineView, and the delegate of the
outline view is the window
3) in the window's awakeFromNib call:
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(gotTableColSizeChanged:)
name: NSOutlineViewColumnDidResizeNotification
object: outline];
4) later on in awakeFromNib, set the outline's delegate to nil
i've discovered, via breakpoints in the debugger and via the fact
that my notification selector isn't called, that step 4 is removing
my observer!
and while now that i know this is happening, its been easy enough to
work around, but i'm wondering if this is expected behavior? and if
so, is it documented anywhere? if not, can anyone comment as to
whether or not it is a bug (personally, i think it probably is, but i
could be talked out of this). i will report this via radar if
appropriate.
thanx,
ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden