Instance Method

addOperation:

Adds the specified operation to the receiver.

Declaration

- (void)addOperation:(NSOperation *)op;

Parameters

operation

The operation to be added to the queue.

Discussion

Once added, the specified operation remains in the queue until it finishes executing.

See Also

Managing Operations in the Queue

- addOperations:waitUntilFinished:

Adds the specified operations to the queue.

- addOperationWithBlock:

Wraps the specified block in an operation and adds it to the receiver.

operations

The operations currently in the queue.

Deprecated
operationCount

The number of operations currently in the queue.

Deprecated
- cancelAllOperations

Cancels all queued and executing operations.

- waitUntilAllOperationsAreFinished

Blocks the current thread until all of the receiver’s queued and executing operations finish executing.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software