Contents

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

Applying and Committing Changes

Managing Notifications and Callbacks

Managing Access to a Preferences Session

Data Types

Constants

See Also

Reference