• 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
Re: observeValueForKeyPath returns null in the change directory???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: observeValueForKeyPath returns null in the change directory???


  • Subject: Re: observeValueForKeyPath returns null in the change directory???
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 17 Aug 2009 09:25:37 -0700

On Mon, Aug 17, 2009 at 9:20 AM, Sean McBride<email@hidden> wrote:
> This bug has been there since 10.3.  I wish the documentation mentioned this.

http://developer.apple.com/releasenotes/Cocoa/AppKitOlderNotes.html#X10_3Notes

"NSControllers ignore the options that can be passed to the
-addObserver:forKeyPath:options:context:context: method. So even if
you register observers with the NSKeyValueObservingOptionNew or
NSKeyValueObservingOptionOld options, you will not receive the values
in the change dictionary of the
-observeValueForKeyPath:ofObject:change:context: calls. This is
usually not a problem, but if you rely on receiving those values, a
workaround may be to observe the model objects directly."

Like I said, incredibly frustrating.  Also poorly documented.  And no
explanation is given.

--Kyle Sluder
_______________________________________________

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

References: 
 >observeValueForKeyPath returns null in the change directory??? (From: Sandro Noel <email@hidden>)
 >Re: observeValueForKeyPath returns null in the change directory??? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Trying to track down error in NSPersistentDocument when saving
  • Next by Date: Re: [SOLVED, with reservations] Re: Turn off menu highlight in outline view?
  • Previous by thread: Re: observeValueForKeyPath returns null in the change directory???
  • Next by thread: Is it possible to detour a drag and drop operation?
  • Index(es):
    • Date
    • Thread