<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenu/SelectionMode-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSMenuSelectionMode"
  },
  "title" : "NSMenu.SelectionMode"
}
-->

# NSMenu.SelectionMode

Describes how the menu manages selection states of the menu items that belong to the same selection group.

```
enum SelectionMode
```

## Overview

This doesn’t apply to menu items that have distinct target-action values.

## Topics

### Defining the selection mode

[`case automatic`](/documentation/AppKit/NSMenu/SelectionMode-swift.enum/automatic)

A selection mode where the menu determines the appropriate selection mode based on the context and its constants.

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

A selection mode where someone can select multiple items in the menu.

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

A selection mode where someone can select at most one menu item in the same selection group at the same time.

### Initializers

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)