NSButton.ButtonType.switch
A standard checkbox button.
Declaration
case `switch`Discussion
A switch button provides the same toggling behavior as a NSButton.ButtonType.toggle button. In addition to configuring that behavior, this button type configures isBordered to false and provides a standard checkbox image.
Checkboxes are ideal for controlling a Boolean state within your application. The mixed state of a checkbox, enabled through the allowsMixedState property, is useful for summarizing multiple Boolean states of varying values.
This option corresponds to the Switch type in Interface Builder’s Attributes inspector.