SCPreferencesPath
Overview
The SCPreferencesPath 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.
The functions in this programming interface view the data as a collection of dictionaries of key-value pairs and an associated path name. The root path (”/”) identifies the top-level dictionary. Additional path components specify the keys for subdictionaries.
For example, the following dictionary can be accessed via two paths. The root path (”/”) returns a dictionary with all keys and values. The path “/path1” returns only the dictionary with the “key3” and “key4” properties.
<dict>
<key>key1</key>
<string>val1</string>
<key>key2</key>
<string>val2</string>
<key>path1</key>
<dict>
<key>key3</key>
<string>val3</string>
<key>key4</key>
<string>val4</string>
</dict>
</dict>Each dictionary can also include the kSCResvLink (”__LINK__”) key. The value associated with this key is interpreted as a link to another path. If this key is present, a call to the SCPreferencesPathGetValue(_:_:) function returns the dictionary specified by the link.
Topics
Creating a New Path
Associating Information with a Path
Getting or Removing Information Associated with a Path
See Also
Reference
SCDynamicStoreSCDynamicStoreCopySpecificSCDynamicStoreKeySCNetworkSCNetworkConfigurationSCNetworkConnectionSCNetworkReachabilitySCPreferencesSCPreferencesSetSpecificSCSchemaDefinitionsSystem ConfigurationSystemConfiguration EnumerationsSystemConfiguration ConstantsSystemConfiguration FunctionsSystemConfiguration Data Types