Contents

performClick(_:)

Simulates a single mouse click on the receiver.

Declaration

func performClick(_ sender: Any?)

Parameters

  • sender:

    The object to use as the sender of the event (if the receiver’s control view is not valid). This object must be a subclass of NSView.

Discussion

This method performs the receiver’s action on its target. The receiver must be enabled to perform the action. If the receiver’s control view is valid, that view is used as the sender; otherwise, the value in sender is used.

The receiver of this message must be a cell of type NSActionCell. This method raises an exception if the action message cannot be successfully sent.

See Also

Related Documentation

Respond to Keyboard Events