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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to