- performSelector:
Sends a specified message to the receiver and returns the result of the message.
- performSelector:withObject:
Sends a message to the receiver with an object as the argument.
Availability
Technology
- (id)performSelector:(SEL)aSelector
withObject:(id)object1
withObject:(id)object2;
aSelector
A selector identifying the message to send. If a
is NULL
, an NSInvalid
is raised.
anObject
An object that is the first argument of the message.
anotherObject
An object that is the second 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 two arguments for a
. a
should identify a method that can take two arguments of type id. For methods with other argument types and return values, use NSInvocation
.
- performSelector:
- performSelector:withObject:
- methodForSelector: