- performSelector:
Sends a specified message to the receiver and returns the result of the message.
- performSelector:withObject:withObject:
Sends a message to the receiver with two objects as arguments.
Availability
Technology
- (id)performSelector:(SEL)aSelector
withObject:(id)object;
aSelector
A selector identifying the message to send. If a
is NULL
, an NSInvalid
is raised.
anObject
An object that is the sole argument of the message.
An object that is the result of the message.
This method is the same as perform
except that you can supply an argument for a
. a
should identify a method that takes a single argument of type id. For methods with other argument types and return values, use NSInvocation
.
- performSelector:
- performSelector:withObject:withObject:
- methodForSelector: