Writes to permanent storage all pending changes to the preference data for the application, and reads the 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
true if synchronization was successful, otherwise
Calling the function
CFPreferences is not in itself sufficient for storing preferences. The
CFPreferences function writes to permanent storage all pending preference changes for the application. Typically you would call this function after multiple calls to
CFPreferences. Conversely, preference data is cached after it is first read. Changes made externally are not automatically incorporated. The
CFPreferences function reads the latest preferences from permanent storage.