Contents

grantCapability:error:

Grants the specified capability to the process.

Declaration

- (id<BEProcessCapabilityGrant>) grantCapability:(BEProcessCapability *) capability error:(NSError **) error;

Parameters

  • capability:

    The capability to grant.

  • error:

    If an error occurs, upon return contains an Nserror object that describes the problem. If you don’t want information about errors that happen, pass in NULL.

Return Value

A BEProcessCapabilityGrant object that represents the granted capability, or nil if an error occurs.

Discussion

When the process no longer needs the capability, call invalidate on the returned object.

See Also

Coordinating processes