Contents

CFPreferencesAppValueIsForced(_:_:)

Determines whether or not a given key has been imposed on the user.

Declaration

func CFPreferencesAppValueIsForced(_ key: CFString, _ applicationID: CFString) -> Bool

Parameters

Return Value

true if value of the key cannot be changed by the user, otherwise false.

Discussion

In cases where machines and/or users are under some kind of management, you should use this function to determine whether or not to disable UI elements corresponding to those preference keys.

See Also

Miscellaneous Functions