Re: KVC Compliance Document: What if ivar in an NSSet?
Re: KVC Compliance Document: What if ivar in an NSSet?
- Subject: Re: KVC Compliance Document: What if ivar in an NSSet?
- From: Jerry Krinock <email@hidden>
- Date: Fri, 14 Dec 2007 15:18:53 -0800
On 2007 Dec, 14, at 13:39, mmalc crawford wrote:
The pattern for sets is described at <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueCoding_Protocol/Reference/Reference.html#//apple_ref/occ/instm/NSObject/mutableSetValueForKey:
>.
I'm just trying to make sure that my ivar is legally KVC (because I'm
having a problem with it). In this "pattern" you referenced, I read:
2. Otherwise (no set of set mutation methods is found), searches the
class of the receiver for an accessor method whose name matches the
pattern set<Key>:. If such a method is found, each NSMutableSet
message sent to the collection proxy object results in a set<Key>:
message being sent to the original receiver...
So I interpret this to mean that having a -<key> and -set<Key> method,
although not efficient, is sufficient to fulfill the legal
requirements for my NSSet ivar to be KVC.
Thanks, mmalc.
_______________________________________________
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