Contents

NSButton.ButtonType.onOff

A button that switches between a normal and emphasized bezel on each click.

Declaration

case onOff

Discussion

When the value of state is off, the button displays its normal bezel. When state has any other value, the button displays an emphasized variant of its bezel. Buttons of this type never display alternate content.

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

See Also

Configuring Button Behavior