Instance Method

mouseEntered(with:)

Draws the button’s border.

Declaration

func mouseEntered(with event: NSEvent)

Parameters

event

The event object generated by the mouse movement.

Discussion

This method is called only when the pointer moves onto the button and the value of showsBorderOnlyWhileMouseInside is true.

See Also

Handling Events and Action Messages

func mouseExited(with: NSEvent)

Erases the button’s border.

func performClick(Any?)

Simulates the user clicking the button with the pointer.