Instance Property

state

The current position of the switch.

Declaration

@property NSControlStateValue state;

Discussion

The values NSControlStateValueOff and NSControlStateValueOn indicate that the switch is in the off or on position. The switch treats any value other than NSControlStateValueOff as on.

Setting this property through the animator proxy animates the switch to the new value.