A class that defines a set of methods for saving and restoring user defaults for screen savers.
- macOS 10.0+
Because screen savers are packaged as bundles and loaded by several different applications, it is not possible to use
NSUser to store user preferences for them.
Screen adds the method
defaults to get an instance corresponding to a particular module name. Screen savers should typically use their bundle identifier as the module name. Once you have an instance of screen saver defaults, you can use the normal methods of
NSUser to load, store, or modify values.