• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
propblems w/ outline view delegate and notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: propblems w/ outline view delegate and notifications
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: BAD_EXC_ACESS
  • Next by Date: Re: NSImageView and releasing it's images...
  • Previous by thread: Re: BAD_EXC_ACESS
  • Next by thread: Re: propblems w/ outline view delegate and notifications
  • Index(es):
    • Date
    • Thread