Returns the value of a single entitlement for the represented task.
- macOS 10.7+
The task whose entitlement you want.
The name of the entitlement to be fetched.
A pointer that the function uses to provide an error object with details if an error occurs. The caller becomes responsible for the object's memory. Pass
NULLto ignore the error.
The value of the specified entitlement for the process or
nil if the entitlement value could not be retrieved. The type of the returned value depends on the entitlement specified.
An empty return value may indicate an error, or it may indicate that the entitlement is simply not present. In the latter case, no error is returned.