• 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: Matt Neuburg <email@hidden>
  • Date: Thu, 29 Jun 2006 07:09:15 -0700
  • 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.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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: Trygve Inda <email@hidden>
  • Prev by Date: Help needed in NSSplitView
  • Next by Date: How does -getLineStart:end:contentsEnd:forRange work ?
  • 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