Instance Property


A Boolean value that indicates whether the button allows a mixed state.


var allowsMixedState: Bool { get set }


The value of this property is true if the button has three states (on, off, and mixed), or false if the button has two states (on and off). The default value is false. On and off states (also referred to as alternate and normal) indicate that the button is either clicked or not clicked. Mixed state is typically used for checkboxes or radio buttons. For example, suppose the state of a checkbox is used to denote whether a text field contains bold text. If all of the text in the text field is bold, then the checkbox appears checked (on). If none of the text is bold, then the checkbox appears unchecked (off). If some of the text is bold, then the checkbox contains a dash (mixed).

See Also

Managing Button State

var state: NSControl.StateValue

The button’s state.

func setNextState()

Sets the button to its next state.

func highlight(Bool)

Highlights (or unhighlights) the button.