Instance Method

performClick:

Simulates the user clicking the button with the pointer.

Declaration

- (void)performClick:(id)sender;

Parameters

sender

The sender of the message.

Discussion

This method essentially highlights the button, sends the button’s action message to the target object, and then unhighlights the button.

If an exception is raised while the target object is processing the action message, the button is unhighlighted before the exception is propagated out of performClick:.

See Also

Handling Events and Action Messages

- mouseEntered:

Draws the button’s border.

- mouseExited:

Erases the button’s border.