<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenuToolbarItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMenuToolbarItem"
  },
  "title" : "NSMenuToolbarItem"
}
-->

# NSMenuToolbarItem

A control that presents a menu in a window’s toolbar.

```
class NSMenuToolbarItem
```

## Overview

If you set an action on an [`NSMenuToolbarItem`](/documentation/AppKit/NSMenuToolbarItem) control item, the user invokes the action when clicking on the item through pressing and holding to display the menu. If you set an action on the item and [`showsIndicator`](/documentation/AppKit/NSMenuToolbarItem/showsIndicator) to <doc://com.apple.documentation/documentation/Swift/true>, the system displays the indicator as a separate segment so the user can invoke the menu with a click on that segment.

If you don’t set an action on the [`NSMenuToolbarItem`](/documentation/AppKit/NSMenuToolbarItem), a simple click invokes the menu, and the indicator is purely decorative.

## Topics

### Configuring a menu toolbar item

[`showsIndicator`](/documentation/AppKit/NSMenuToolbarItem/showsIndicator)

A Boolean value that determines whether the toolbar item displays an indicator of additional functionality.

[`menu`](/documentation/AppKit/NSMenuToolbarItem/menu)

The menu presented from the toolbar item.

[`itemMenu`](/documentation/AppKit/NSMenuToolbarItem/itemMenu)



---

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)