Re: Bindings/Observation Question
Re: Bindings/Observation Question
- Subject: Re: Bindings/Observation Question
- From: Karl Goiser <email@hidden>
- Date: Fri, 24 Mar 2006 05:52:10 +1100
Hi Jonathon,
Thanks for replying.
The question is: sure bindings will allow the user preferences data
to be updated in a preferences window, but how do I tell the rest of
the application about the update?
Thanks,
Karl
On 23/03/2006, at 11:26 PM, Jonathon Mah wrote:
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