Instance Method

objectIsForcedForKey:

Returns a Boolean value indicating whether the specified key is managed by an administrator.

Declaration

- (BOOL)objectIsForcedForKey:(NSString *)key;

Parameters

key

The key whose status you want to check.

Return Value

YES if the value of the specified key is managed by an administrator, otherwise NO.

Discussion

This method assumes that the key is a preference associated with the current user and application. For managed keys, the application should disable any user interface that allows the user to modify the value of key.

See Also

Accessing Managed Environment Keys

- objectIsForcedForKey:inDomain:

Returns a Boolean value indicating whether the key in the specified domain is managed by an administrator.