Function SCPreferencesRemoveValue

Source
pub unsafe extern "C-unwind" fn SCPreferencesRemoveValue(
    prefs: &SCPreferences,
    key: &CFString,
) -> bool
Available on crate feature SCPreferences only.
Expand description

Removes the data associated with a preference key.

This function removes the data associated with the specified key. To commit these changes to permanent storage a call must be made to the SCPreferencesCommitChanges function.

Parameter prefs: The preferences session.

Parameter key: The preference key to be removed.

Returns: Returns TRUE if the value was removed; FALSE if the key did not exist or if an error occurred.