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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to