SCPreferences
Overview
The SCPreferences programming interface allows an application to load and store XML configuration data in a controlled manner and provide the necessary notifications to other applications that need to be aware of configuration changes.
To access configuration preferences, you must first establish a preferences session using the SCPreferencesCreate(_:_:_:) function. To identify a specific set of preferences to access, you pass a value in the prefsID parameter. A NULL value indicates that the default system preferences are to be accessed. A string that starts with a leading “/” character specifies the absolute path to the file containing the preferences to be accessed. A string that does not start with a leading “/” character specifies a file relative to the default system preferences directory.
When you are finished with the preferences session, use the CFRelease function to release it.
Topics
Creating a Preferences Session
Getting Information About a Preferences Session
Adding, Getting, and Removing Values
SCPreferencesAddValue(_:_:_:)SCPreferencesGetValue(_:_:)SCPreferencesSetValue(_:_:_:)SCPreferencesRemoveValue(_:_:)
Applying and Committing Changes
Managing Notifications and Callbacks
SCPreferencesSetCallback(_:_:_:)SCPreferencesScheduleWithRunLoop(_:_:_:)SCPreferencesUnscheduleFromRunLoop(_:_:_:)SCPreferencesSetDispatchQueue(_:_:)
Managing Access to a Preferences Session
Data Types
Constants
See Also
Reference
SCDynamicStoreSCDynamicStoreCopySpecificSCDynamicStoreKeySCNetworkSCNetworkConfigurationSCNetworkConnectionSCNetworkReachabilitySCPreferencesPathSCPreferencesSetSpecificSCSchemaDefinitionsSystem ConfigurationSystemConfiguration EnumerationsSystemConfiguration ConstantsSystemConfiguration FunctionsSystemConfiguration Data Types