Instance Method


Cancels the sending of a previously scheduled message.


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



The previously-specified selector.


The previously-specified target.


The previously-specified argument.


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