---
title: string
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstext/string
---

# string

The characters of the receiver’s text.

## Declaration

```swift
var string: String { get set }
```

## Discussion

Discussion For performance reasons, this value is the current backing store of the text object. If you want to maintain a snapshot of this as you manipulate the text storage, you should make a copy of the appropriate substring.

## See Also

### Related Documentation

- [Cocoa Text Architecture Guide](apple-archive/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Introduction.md)
