Contents

target(forAction:)

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

Declaration

func target(forAction action: Selector) -> Any?

Parameters

  • action:

    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