Re: How does NSArrayController know?
Re: How does NSArrayController know?
- Subject: Re: How does NSArrayController know?
- From: "Jeffrey J. Early" <email@hidden>
- Date: Fri, 05 Oct 2007 00:52:18 -0700
On Oct 5, 2007, at 12:03 AM, Bob Ueland wrote:
My question is how the NSArrayController knows the method names
insertObject:inEmployeesAtIndex: and
removeObjectFromEmployeesAtIndex: (the word employees is chosen by
our app and the general class NSArrayController can't possible know
that).
I've looked at "NSArrayController Class Reference" but couldn't
find any info. I suspected kvc compliance but the document never
mentions it (or I missed it).
Bob
You're right, it's KVC compliance for the mutable part of a to-many
relationship named 'Employees'.
You can find the details on this page:
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/AccessorConventions.html
Or it's nicely summarized here:
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/Compliant.html
_______________________________________________
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