Instance Method インスタンスメソッド

performSelector:withObject:withObject:

Sends a message to the receiver with two objects as arguments.

Declaration 宣言

- (id)performSelector:(SEL)aSelector 
           withObject:(id)object1 
           withObject:(id)object2;

Parameters パラメータ

aSelector

A selector identifying the message to send. If aSelector is NULL, an NSInvalidArgumentException is raised.

anObject

An object that is the first argument of the message.

anotherObject

An object that is the second argument of the message

Return Value 戻り値

An object that is the result of the message.

Discussion 解説

This method is the same as performSelector: except that you can supply two arguments for aSelector. aSelector should identify a method that can take two arguments of type id. For methods with other argument types and return values, use NSInvocation.

See Also 参照

Sending Messages メッセージ送信

Related Documentation 関連文書