Re: Crash in KVO when using -keyPathsForValuesAffecting<Key>
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