Re: Handling preferences changes
Re: Handling preferences changes
- Subject: Re: Handling preferences changes
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 3 May 2007 12:22:34 -0700
On 5/3/07, Steve Israelson <email@hidden> wrote:
>> These settings are all stored in a CoreData DB.
>
> Maybe I'm not getting something, but ... why wouldn't you store the
> application's preferences in the application's preferences (ie, using
> the established preferences mechanism)? See NSUserDefaults and
> NSUserDefaultsController. The former is *the* Cocoa preferences
> mechanism, the latter is an NSObjectController subclass that lets you
> use Cocoa Bindings with the former.
>
Well, the file will likely be stored in the location that the prefs
are stored in.
I am not using the prefs mechanism since the data I have is an object
graph (the DB).
Using CoreData and bindings allows me to make the entire preferences
UI with no code.
I would consider flattening you model and then use NSUserDefaults and
NSUserDefaultsController in you want to use bindings.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden