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

# isSelectable

A Boolean that controls whether the receiver allows the user to select its text.

```
var isSelectable: Bool { get set }
```

## Discussion

If `flag` is <doc://com.apple.documentation/documentation/Swift/true>, the receiver allows the user to select text; if `flag` is <doc://com.apple.documentation/documentation/Swift/false>, it doesn’t.

You can set selections programmatically regardless of this setting. If the receiver is made not selectable, it’s also made not editable. `NSText` objects are by default editable and selectable.

---

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)