Contents

NSButton.ButtonType.pushOnPushOff

A button that switches between on and off states with each click.

Declaration

case pushOnPushOff

Discussion

When state is on, the button appears illuminated. If the button has borders, it may also appear recessed. A second click returns the button’s state to off.

This option corresponds to the Push On Push Off type in Interface Builder’s Attributes Inspector.

See Also

Configuring Button Behavior