• 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: ScreenSaver and NSUserDefaultsController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >ScreenSaver and NSUserDefaultsController (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: RE: ScreenSaver and NSUserDefaultsController
  • Next by Date: Re: Shared User Defaults v. NSUserDefaultsController in a nib question
  • Previous by thread: RE: ScreenSaver and NSUserDefaultsController
  • Next by thread: Re: Shared User Defaults v. NSUserDefaultsController in a nib question
  • Index(es):
    • Date
    • Thread