<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStatusItem/view",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSStatusItem(py)view"
  },
  "title" : "view"
}
-->

# view

The custom view the status item displays at its position in the status bar.

```
var view: NSView? { get set }
```

## Discussion

Setting a custom view overrides the appearance and behavior settings that [`NSStatusItem`](/documentation/AppKit/NSStatusItem) defines. The custom view is responsible for drawing itself and providing its own behaviors, such as processing mouse clicks and sending action messages.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)