---
title: delegate
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextstorage/delegate
---

# delegate

The delegate for the text storage object.

## Declaration

```swift
weak var delegate: (any NSTextStorageDelegate)? { get set }
```

## Discussion

Discussion Use a delegate object to monitor edits occurring to the text contents. Your delegate object must conform to the NSTextStorageDelegate protocol.

## See Also

### Processing the editing actions

- [NSTextStorageDelegate](appkit/nstextstoragedelegate.md)
