KVC Compliance Document: What if ivar in an NSSet?
KVC Compliance Document: What if ivar in an NSSet?
- Subject: KVC Compliance Document: What if ivar in an NSSet?
- From: Jerry Krinock <email@hidden>
- Date: Fri, 14 Dec 2007 12:14:51 -0800
In the Key Value Programming Coding Guide > Ensuring KVC Compliance,
http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html
It says:
"For to-many relationships, KVC compliance requires that...Your class
implements a method named -<key> that returns an array..."
I would say that an NSSet ivar is a to-many relationship. Does this
mean that my accessors must translate NSSet <-> NSArray, or am I
reading the documentation too literally?
If the latter, may I interpret an NSSet to be a to-one relationship
for KVC purposes?
Jerry Krinock
_______________________________________________
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