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

# primaryTextLayoutManager

The primary text layout manager for this content.

```
var primaryTextLayoutManager: NSTextLayoutManager? { get set }
```

## Discussion

Setting this property to an [`NSTextLayoutManager`](/documentation/AppKit/NSTextLayoutManager) not in `textLayoutManagers` resets it to `nil`. It automatically synchronizes pending edits before switching to a new primary object. The operation is synchronous.

This property is KVO-compliant.

---

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)