Instance Method

performClick:

Simulates a single mouse click on the receiver.

Declaration

- (void)performClick:(id)sender;

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

Respond to Keyboard Events

acceptsFirstResponder

A Boolean value indicating whether the cell accepts first responder status.

showsFirstResponder

A Boolean value indicating whether the cell provides a visual indication that it is the first responder.

refusesFirstResponder

A Boolean value indicating whether the cell refuses the first responder status.