Re: Bindings and Observing

2010-03-25 Thread Laurent Daudelin
On Mar 25, 2010, at 11:29, Sean McBride wrote: > On Thu, 25 Mar 2010 11:25:46 -0700, Laurent Daudelin said: > >> I see. I thought about observing those properties managed by the user >> defaults controller but after I read the document "Controller Key-Value >> Observing Compliance", I saw that NS

Re: Bindings and Observing

2010-03-25 Thread Sean McBride
On Thu, 25 Mar 2010 11:25:46 -0700, Laurent Daudelin said: >I see. I thought about observing those properties managed by the user >defaults controller but after I read the document "Controller Key-Value >Observing Compliance", I saw that NSUserDefaultsController is a key- >value-observing only for

Re: Bindings and Observing

2010-03-25 Thread Laurent Daudelin
On Mar 25, 2010, at 00:32, Quincey Morris wrote: > On Mar 24, 2010, at 23:42, Laurent Daudelin wrote: > >> In the Preferences.nib file, the checkbox and the textfield are bound to the >> defaults controller. So far, so good. In the application delegate's >> applicationWillFinishLaunching:, they

Re: Bindings and Observing

2010-03-25 Thread Quincey Morris
On Mar 24, 2010, at 23:42, Laurent Daudelin wrote: > In the Preferences.nib file, the checkbox and the textfield are bound to the > defaults controller. So far, so good. In the application delegate's > applicationWillFinishLaunching:, they have those 2 lines: > > [self bind:SKTAppAutosave

Bindings and Observing

2010-03-24 Thread Laurent Daudelin
I have an application where I would like to bind the preferences UI items to the a NSUserDefaultsController. That part is easy. The next part I would like to do is add my preferences controller as an observer for those properties that would be managed by the controller. That had me stumped a bit