• 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: Binding to an array of dictionaries as a to-many
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding to an array of dictionaries as a to-many


  • Subject: Re: Binding to an array of dictionaries as a to-many
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 21 Mar 2005 04:54:52 -0800


On Mar 21, 2005, at 1:44 AM, Paul Collins wrote:

FYI, I got a Master-Detail view working fine, with an NSTable bound to arrangedObjects, and various detail fields bound to selection. The problem is my detail view needs its own table of to-many data pulled from the object selected in the master table. The bound value for the detail table column is "selection.iPersons.Name".

Bindings work much better if the object being displayed is itself KVC compliant. Moreover arrays should be managed by an array controller.
Here it looks like you're wanting to display just an array of strings. You would be better adding an array controller with contentArray bound to [Master Array Controller].selection.iPersons. The bound value for the detail table column would then be [Detail Array Controller].arrangedObjects.name.


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Binding to an array of dictionaries as a to-many (From: Paul Collins <email@hidden>)

  • Prev by Date: Re: Access iTunes Playlists / tracks via Cocoa
  • Next by Date: NSArrayController: Modify contents programmatically
  • Previous by thread: Re: Binding to an array of dictionaries as a to-many
  • Next by thread: QT Streaming Question
  • Index(es):
    • Date
    • Thread