<!--
{
  "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

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

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

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

The system toggles a highlight on any item selected.

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

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

### Initializers

[`init?(rawValue: Int)`](/documentation/AppKit/NSToolbarItemGroup/SelectionMode-swift.enum/init(rawValue:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)