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

# textSelectionMode

The interaction mode for text selection.

```
var textSelectionMode: NSTextSelectionManager.Mode { get set }
```

## Discussion

Determines whether text is editable, selectable only, or non-interactive. The default value is `NSTextSelectionModeEditable`.

---

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)