• 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: Bindings/Observation Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings/Observation Question


  • Subject: Re: Bindings/Observation Question
  • From: Jonathon Mah <email@hidden>
  • Date: Thu, 23 Mar 2006 22:56:04 +1030

Hi Karl,

On 2006-03-23, at 09:21, Karl Goiser wrote:

I have some preferences which contain an array of dictionaries containing attributes including an array of dictionaries. [...]

To do this using Bindings, I am thinking of a table view and NSArrayController for the outer array, and selection of a theme sets a variable whose NSObjectController then displays the particular preferences, and another table view and NSArrayController handles the inner array..
(Is this a good scenario?)

Yeah, that should work fine.

The question: how does the rest of the application become aware of the changes to the preferences - especially the attributes in the inner dictionary? KVO? If so, wouldn't I then have to observe every attribute within the theme, its array as well as every attribute of the inner dictionary, as well as being aware of additions to and deletions from the inner array?

I'm a bit confused about what you're trying to do. Can you give an example dictionary layout, and how that will affect the interface?



Jonathon Mah email@hidden


_______________________________________________ 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: Bindings/Observation Question
      • From: Karl Goiser <email@hidden>
References: 
 >Bindings/Observation Question (From: Karl Goiser <email@hidden>)

  • Prev by Date: Re: Sending mail
  • Next by Date: Re: Sending mail
  • Previous by thread: Bindings/Observation Question
  • Next by thread: Re: Bindings/Observation Question
  • Index(es):
    • Date
    • Thread