Re: Problem implementing keyPathsForvaluesAffecting<Key>
Re: Problem implementing keyPathsForvaluesAffecting<Key>
- Subject: Re: Problem implementing keyPathsForvaluesAffecting<Key>
- From: "email@hidden" <email@hidden>
- Date: Wed, 22 Apr 2009 17:17:42 +0100
On 22 Apr 2009, at 17:10, Keith Duncan wrote:
On 22 Apr 2009, at 15:45, email@hidden wrote:
Is there a problem with my implementation of +
keyPathsForValuesAffectingCanDelete
You method signature is slightly wrong, it needs to be of the form
+keyPathsForValuesAffectingValueFor<Key>:
Keith
I think it's okay.
You can register you dependent keys either using
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key
or
You can also achieve the same result by implementing a class method
that follows the naming convention
keyPathsForValuesAffecting<Key>, where <Key> is the name of the
attribute (first letter capitalized) that is dependent on the values.
But correct me again if I am wrong.
Jonathan Mitchell
Central Conscious Unit
http://www.mugginsoft.com
_______________________________________________
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