For the specified domain, writes all pending changes to preference data to permanent storage, and reads latest preference data from permanent storage.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The ID of the application whose preferences you wish to modify. Takes the form of a Java package name,
true if synchronization was successful,
false if an error occurred.
This function is the primitive synchronize mechanism for the higher level preference function
CFPreferences; it writes updated preferences to permanent storage, and reads the latest preferences from permanent storage. Only the exact domain specified is modified. Note that to modify “Any User” preferences requires root privileges (or Admin privileges prior to OS X v10.6)—see Authorization Services Programming Guide.
Do not use this function directly unless you have a specific need. All arguments must be non-
NULL. Do not use arbitrary user and host names, instead pass the pre-defined constants.