Class

NSInvocationOperation

An operation that manages the execution of a single encapsulated task specified as an invocation.

Overview

The NSInvocationOperation class is a concrete subclass of NSOperation that you use to initiate an operation that consists of invoking a selector on a specified object. This class implements a non-concurrent operation.

For more information on concurrent versus non-concurrent operations, see NSOperation.

Topics

Initialization

initWithTarget:selector:object:

Returns an NSInvocationOperation object initialized with the specified target and selector.

initWithInvocation:

Returns an NSInvocationOperation object initialized with the specified invocation object.

Getting Attributes

invocation

The receiver’s invocation object.

result

The result of the invocation or method.

Constants

Result Exceptions

Names of exceptions raised by NSInvocationOperation if there is an error when calling the result method.

Relationships

Inherits From

See Also

Operations

NSOperation

An abstract class that represents the code and data associated with a single task.

NSOperationQueue

A queue that regulates the execution of a set of operations.

NSBlockOperation

An operation that manages the concurrent execution of one or more blocks.