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

# highlightedItem

Indicates the currently highlighted item in the menu.

```
var highlightedItem: NSMenuItem? { get }
```

## Discussion

This property indicates the currently highlighted item in the menu. If no menu is highlighted, this property has a value of `nil`.

---

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)