Instance Method

tryLock

Attempts to acquire the receiver and immediately returns a Boolean value that indicates whether the attempt was successful.

Declaration

- (BOOL)tryLock;

Return Value

YES if the attempt to acquire the receiver was successful, otherwise NO.

Discussion

Raises NSGenericException if a file-system error occurs.

See Also