---
title: state
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmenuitem/state
---

# state

The state of the menu item.

## Declaration

```swift
var state: NSControl.StateValue { get set }
```

## Discussion

Discussion The image associated with the new state is displayed to the left of the menu item.

## See Also

### Related Documentation

- [offStateImage](appkit/nsmenuitem/offstateimage.md)
- [mixedStateImage](appkit/nsmenuitem/mixedstateimage.md)
- [onStateImage](appkit/nsmenuitem/onstateimage.md)
