Re: Cocoa Bindings & GUI question
Re: Cocoa Bindings & GUI question
- Subject: Re: Cocoa Bindings & GUI question
- From: Scott Anguish <email@hidden>
- Date: Mon, 16 May 2005 13:15:43 -0400
On May 16, 2005, at 10:03 AM, Jesus De Meyer wrote:
Bind your master checkbox's 'value' attribute to your model (e.g. user defaults) with whatever key path you want. Then, for each of the checkboxes in your group, bind their 'enabled' attribute to your model to the same key path as for your master checkbox.
Thanks for the tip. I noticed that there 2 kinds of userdefaults: NSUserDefaultsController and the Shared User Defaults. Which one should I use? I have seen in some examples that they use the shared one, so what's the use of the other one?
Shared User Defaults is an instance of NSUserDefaultsController that uses the standard user defaults for the application. NSUserDefaultsController can be configured in a number of different ways (for example, you can specify a different NSUserDefaults instance to use).
So, use eh Shared User Defaults
|
_______________________________________________
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