Instance Method

cancelPerformSelector:target:argument:

Cancels the sending of a previously scheduled message.

Declaration

- (void)cancelPerformSelector:(SEL)aSelector target:(id)target argument:(id)arg;

Parameters

aSelector

The previously-specified selector.

target

The previously-specified target.

anArgument

The previously-specified argument.

Discussion

You can use this method to cancel a message previously scheduled using the performSelector:target:argument:order:modes: method. The parameters identify the message you want to cancel and must match those originally specified when the selector was scheduled. This method removes the perform request from all modes of the run loop.

See Also

Scheduling and Canceling Messages

- performSelector:target:argument:order:modes:

Schedules the sending of a message on the receiver.

- cancelPerformSelectorsWithTarget:

Cancels all outstanding ordered performs scheduled with a given target.

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