---
title: behavior
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsstatusitem/behavior-swift.property
---

# behavior

The set of allowed behaviors for the status item.

## Declaration

```swift
var behavior: NSStatusItem.Behavior { get set }
```

## Discussion

Discussion By default, this property includes no behavior options. See NSStatusItem.Behavior for a list of available behavior options and their effects.

## See Also

### Managing the Status Item’s Behavior

- [NSStatusItem.Behavior](appkit/nsstatusitem/behavior-swift.struct.md)
- [button](appkit/nsstatusitem/button.md)
- [menu](appkit/nsstatusitem/menu.md)
