• 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: Crash in KVO when using -keyPathsForValuesAffecting<Key>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>


  • Subject: Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 20 Jun 2009 23:21:48 +0200


Le 20 juin 09 à 21:39, Jeff Johnson a écrit :

Sorry, scratch that, I apparently misread your example. As Phil would say, I'm an idiot.

Does +keyPathsForValuesAffecting... actually support true keypaths? The documentation is unclear.

-Jeff



If this is not supported, I will fill a bug report against the NSKeyValueObserving protocol doc:

«Discussion

When an observer for the key is registered with an instance of the receiving class, key-value observing itself automatically observes all of the key paths for the same instance, and sends change notifications for the key to the observer when the value for any of those key paths changes.
[...]
You can override this method when the getter method of one of your properties computes a value to return using the values of other properties, including those that are located by key paths.»_______________________________________________


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: 
 >Crash in KVO when using -keyPathsForValuesAffecting<Key> (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Crash in KVO when using -keyPathsForValuesAffecting<Key> (From: Jeff Johnson <email@hidden>)
 >Re: Crash in KVO when using -keyPathsForValuesAffecting<Key> (From: Jeff Johnson <email@hidden>)

  • Prev by Date: Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>
  • Next by Date: Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>
  • Previous by thread: Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>
  • Next by thread: Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>
  • Index(es):
    • Date
    • Thread