• 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 to use bindings on a specific array element
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use bindings on a specific array element


  • Subject: Re: How to use bindings on a specific array element
  • From: Francis Derive <email@hidden>
  • Date: Thu, 7 Jun 2007 13:42:39 +0200

From the last NSArrayController Bindings Reference :

Controller Content Bindings

contentArray
An indexed collection that specifies the content of the NSArrayController.


The indexed collection is an NSArray instance or subclass, a property that is accessible using the key-value-coding indexed accessor methods, or is accessible through mutableArrayValueForKey:.

You should use the contentSet binding for Core Data to-many relationships.

Availability:
Available in Mac OS X v10.3 and later.

I notice :
a property that is accessible using the key-value-coding indexed accessor methods

Francis.



On Jun 6, 2007, at 6:22 PM, George Orthwein wrote:

On Jun 6, 2007, at 5:27 AM, Francis Derive wrote:
If so, because I have a similar (problematic) situation, I only but can tell about the "Indexed Accessor Patterns for To-Many Properties" at page 18 of the ADC document "Key-Value Coding Programming Guide" - but couldn't yet understand how to make it - if ever possible along this way.

That section describes how to make objects not stored in an array, appear that they do for purposes of key value coding. So it won't give a way to bind to specific array elements.


For an example, look at the Combatants example under "Managing non- array collection, and filtering" near the bottom of the page:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html


George



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 to use bindings on a specific array element (From: "Arthur C." <email@hidden>)
 >Re: How to use bindings on a specific array element (From: Francis Derive <email@hidden>)
 >Re: How to use bindings on a specific array element (From: George Orthwein <email@hidden>)

  • Prev by Date: Re: codeSense
  • Next by Date: Dictionaries within a dictionary - getAllValuesForKey:
  • Previous by thread: Re: How to use bindings on a specific array element
  • Next by thread: Re: How to use bindings on a specific array element
  • Index(es):
    • Date
    • Thread