• 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: NSUersDefaults and setting for a specific domain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUersDefaults and setting for a specific domain


  • Subject: Re: NSUersDefaults and setting for a specific domain
  • From: Mailing list subscriptions <email@hidden>
  • Date: Wed, 27 Sep 2006 10:26:30 +0200

El 26/09/2006, a las 22:16, Chris Parker escribió:

But I'm guessing there is a cleaner way to do this.

There is, but it means dropping "down" to CFPreferences. Key/value pairs set via CFPreferences are available through NSUserDefaults and vice-versa.

And you could encapsulate either of these approaches in a NSUserDefaults category if you wanted a to present a "pure" Cocoa interface to the programmer.


In any case, I wonder what happens when you try to mix this stuff (accessing a domain other than the default one) with Cocoa Bindings and NSUserDefaultsController... An older post by Scott Anguish said, "[Y]ou can access the user defaults instance for an NSUserDefaultsController directly, and there you can change the domain being used. do this before anything is loaded for your bundle/ controller."; I wonder what the cleanest, most transparent way to do that is...



_______________________________________________
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


  • Follow-Ups:
    • Re: NSUersDefaults and setting for a specific domain
      • From: Scott Anguish <email@hidden>
References: 
 >NSUersDefaults and setting for a specific domain (From: David Alter <email@hidden>)
 >Re: NSUersDefaults and setting for a specific domain (From: Chris Parker <email@hidden>)

  • Prev by Date: Re: Using Sampler
  • Next by Date: Re: NSUersDefaults and setting for a specific domain
  • Previous by thread: Re: NSUersDefaults and setting for a specific domain
  • Next by thread: Re: NSUersDefaults and setting for a specific domain
  • Index(es):
    • Date
    • Thread