• 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: NSDictionary allValues not mutable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary allValues not mutable


  • Subject: Re: NSDictionary allValues not mutable
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 18 Oct 2010 13:13:49 -0500

On Oct 18, 2010, at 10:59 AM, Trygve Inda wrote:

> I guess I am just not seeing how my NSArrayController would ties to this. So
> I have a class MyDataClass and since my NSTableView is tied to an
> NSArrayController, then the NSArrayController needs to get it's data from
> MyDataClass.
>
> So is there then a myArray property in MyDataClass that the
> NSArrayController binds to?
>
> Or does NSArrayController  somehow bind to a non-array property, but one
> that responds as if it were an array?

A property implemented in terms of the indexed accessor methods is appropriate for binding an NSArrayController's contentArray to.  And, if you must think of properties as "array" vs "non-array", then such a property is an array property.  It is more precisely called an indexed to-many relationship or an indexed collection.  (In particular, there's no reason to expect an NSArray* to be part of its interface.)

Regards,
Ken

_______________________________________________

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

  • Follow-Ups:
    • Re: NSDictionary allValues not mutable
      • From: Trygve Inda <email@hidden>
References: 
 >Re: NSDictionary allValues not mutable (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: NSDictionary allValues not mutable
  • Next by Date: Re: AM/PM letter UNICODE issues
  • Previous by thread: Re: NSDictionary allValues not mutable
  • Next by thread: Re: NSDictionary allValues not mutable
  • Index(es):
    • Date
    • Thread