• 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: Handling preferences changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Handling preferences changes (From: Steve Israelson <email@hidden>)
 >Re: Handling preferences changes (From: "I. Savant" <email@hidden>)
 >Re: Handling preferences changes (From: Steve Israelson <email@hidden>)

  • Prev by Date: [SOLVED] NSImageView setAnimates:YES... PLEASE?
  • Next by Date: Multiple Cocoa Applications within one
  • Previous by thread: Re: Handling preferences changes
  • Next by thread: Re: Handling preferences changes
  • Index(es):
    • Date
    • Thread