---
title: textStorage
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/textstorage
---

# textStorage

The receiver’s text storage object.

## Declaration

```swift
unowned(unsafe) var textStorage: NSTextStorage? { get }
```

## See Also

### Accessing text system objects

- [stronglyReferencesTextStorage](appkit/nstextview/stronglyreferencestextstorage.md)
- [fieldEditor()](appkit/nstextview/fieldeditor().md)
- [textContainer](appkit/nstextview/textcontainer.md)
- [replaceTextContainer(_:)](appkit/nstextview/replacetextcontainer(_:).md)
- [textContainerInset](appkit/nstextview/textcontainerinset.md)
- [textContainerOrigin](appkit/nstextview/textcontainerorigin.md)
- [invalidateTextContainerOrigin()](appkit/nstextview/invalidatetextcontainerorigin().md)
- [textLayoutManager](appkit/nstextview/textlayoutmanager.md)
- [layoutManager](appkit/nstextview/layoutmanager.md)
- [textContentStorage](appkit/nstextview/textcontentstorage.md)
