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

# textViewForBeginningOfSelection

The text view that contains the first glyph in the selection.

```
unowned(unsafe) var textViewForBeginningOfSelection: NSTextView? { get }
```

## Discussion

This property does not cause layout if the beginning of the selected range is not yet laid out.

---

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)