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: 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