<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbarItemGroup/SelectionMode-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSToolbarItemGroupSelectionMode"
  },
  "title" : "NSToolbarItemGroup.SelectionMode"
}
-->

# NSToolbarItemGroup.SelectionMode

A value that indicates how a grouped toolbar item selects its subitems.

```
enum SelectionMode
```

## Topics

### Selection modes

[`NSToolbarItemGroup.SelectionMode.momentary`](/documentation/AppKit/NSToolbarItemGroup/SelectionMode-swift.enum/momentary)

The system temporarily highlights the select group item when the user selects the item.

[`NSToolbarItemGroup.SelectionMode.selectAny`](/documentation/AppKit/NSToolbarItemGroup/SelectionMode-swift.enum/selectAny)

The system toggles a highlight on any item selected.

[`NSToolbarItemGroup.SelectionMode.selectOne`](/documentation/AppKit/NSToolbarItemGroup/SelectionMode-swift.enum/selectOne)

The system displays a highlighted mode on the most recent item selected.



---

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)