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

# textSelections

An array of text selections associated by the text layout manager.

```
var textSelections: [NSTextSelection] { get set }
```

## Discussion

Each [`NSTextSelection`](/documentation/AppKit/NSTextSelection) represents an insertion point. The selection state that the framework shares among all viewports connected to the text layout manager through text containers.

---

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)