Re: ScreenSaver and NSUserDefaultsController
Re: ScreenSaver and NSUserDefaultsController
- Subject: Re: ScreenSaver and NSUserDefaultsController
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 15 May 2006 13:36:53 -0600
On May 15, 2006, at 1:23 PM, Jesus De Meyer wrote:
I don't know if this is a known issue, but if I use the
NSUserDefaultsController for my screensaver, the preferences get
saved in the System Preferences preferences, and not in the
screensaver itself.
Is there a way around this or do I have to code my UserDefaults
like the good old days?
You have to use the ScreenSaverDefaults class to save user defaults
in screen savers. However, you may still be able to use
NSUserDefaultsController with screen savers. I haven't tried it, but
if you initialize the NSUserDefaultsController using -
initWithUserDefaults:initialValues: and pass in +[ScreenSaverDefaults
standardUserDefaults], it seems to me that it ought to work...
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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