• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does NSArrayController know?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How does NSArrayController know? (From: Bob Ueland <email@hidden>)

  • Prev by Date: How does NSArrayController know?
  • Next by Date: Re: How does NSArrayController know?
  • Previous by thread: How does NSArrayController know?
  • Next by thread: Re: How does NSArrayController know?
  • Index(es):
    • Date
    • Thread