Re: NSUersDefaults and setting for a specific domain
Re: NSUersDefaults and setting for a specific domain
- Subject: Re: NSUersDefaults and setting for a specific domain
- From: Scott Anguish <email@hidden>
- Date: Wed, 27 Sep 2006 04:34:46 -0400
On Sep 27, 2006, at 4:26 AM, Mailing list subscriptions wrote:
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...
that would be in the same manner as changing the suite... it wouldn't
be a replacement for the CF stuff.
_______________________________________________
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