Re: Binding to an array of dictionaries as a to-many
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