Instance Method

invokeWithTarget:

Sets the receiver’s target, sends the receiver’s message (with arguments) to that target, and sets the return value.

Declaration

- (void)invokeWithTarget:(id)target;

Parameters

anObject

The object to set as the receiver's target.

Discussion

You must set the receiver’s selector and argument values before calling this method.

See Also

Dispatching an Invocation

- invoke

Sends the receiver’s message (with arguments) to its target and sets the return value.