The cell’s current state.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
var state: NSControl.State Value { get set }
Discussion
The off
state indicates the normal or unpressed state. The on
state indicates the alternate or pressed state. The mixed
state indicates that the feature represented by the control is in effect somewhere.
Although using the enumerated constants is preferred, you can also assign an integer value to this property. If the cell has two states, 0
is treated as off
, and a nonzero value is treated as on
. If the cell has three states, 0
is treated as off
, a negative value is treated as NSMixed
, and a positive value is treated as on
.