---
title: nextState
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/nextstate
---

# nextState

The cell’s next state.

## Declaration

```swift
var nextState: Int { get }
```

## Discussion

Discussion If a cell has three states, it cycles in this order: on, off, mixed, on, off, and so forth. If the cell has only two states, it toggles between them. For a list of constants representing the possible cell states, see NSCell.StateValue.

## See Also

### Managing Cell State

- [allowsMixedState](appkit/nscell/allowsmixedstate.md)
- [setNextState()](appkit/nscell/setnextstate().md)
- [state](appkit/nscell/state.md)
- [NSControl.StateValue](appkit/nscontrol/statevalue.md)
