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.

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