• 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: Bind to element in dictionary in array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Bind to element in dictionary in array
      • From: Matt Neuburg <email@hidden>
References: 
 >Re: Bind to element in dictionary in array (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: running code on quitting of a Foundation tool
  • Next by Date: Re: Is there another way to do performSelectorOnMainThread?
  • Previous by thread: Re: Bind to element in dictionary in array
  • Next by thread: Re: Bind to element in dictionary in array
  • Index(es):
    • Date
    • Thread