Re: Bind to element in dictionary in array
Re: Bind to element in dictionary in array
- Subject: Re: Bind to element in dictionary in array
- From: Trygve Inda <email@hidden>
- Date: Thu, 29 Jun 2006 14:21:35 +0000
- Thread-topic: Bind to element in dictionary in array
> On Wed, 28 Jun 2006 16:43:30 +0000, Trygve Inda <email@hidden>
> said:
>> Dict
>> - someValueA
>> - someValueB
>> - someValueC
>> --- Array (key: MyArray)
>> - Dict (element 1)
>> - someBoolValueD
>> - someBoolValueE
>> - Dict (element 2)
>> - someBoolValueD
>> - someBoolValueE
>> --- (End of Array)
>>
>> So, it's easy to bind to the first part with dict.someValueA, but how do I
>> notate a bind to a element in the array? (in Interface Builder)
>>
>> dict.MyArray[index].someBoolValueD <- this does not seem to work
>
> If you pass through an NSArrayController you can bind to
> theArrayController.selection.someBoolValueD, and the selection is in your
> control. m.
The selection will be null though. What I have are two windows with
identical controls (checkboxes, sliders and popup menus). Each window is to
control options for a different physical monitor.
The main monitor is element 1 in the array so I'd like to bind the controls
in Window 1 to the elements of the dictionary that is element 1.
Perhaps it is better to not use an array and hard wire it into preset dicts?
Trygve
_______________________________________________
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