Instance Method

targetForAction:

Returns the object that receives the action message specified by the given selector

Declaration

- (id)targetForAction:(SEL)action;

Parameters

aSelector

The desired action message.

Return Value

The object that would receive the specified action message or nil if no target object would receive the message. This method also returns nil if aSelector is nil.

See Also

Posting Actions

- tryToPerform:with:

Dispatches an action message to the specified target.

- sendAction:to:from:

Sends the given action message to the given target.

- targetForAction:to:from:

Searches for an object that can receive the message specified by the given selector.