---
title: NSTextStorageDelegate
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/nstextstoragedelegate
---

# NSTextStorageDelegate

The optional methods that delegates of text storage objects implement to handle text-edit processing.

## Declaration

```swift
protocol NSTextStorageDelegate : NSObjectProtocol
```

## Topics

### Processing edit actions

- [textStorage(_:willProcessEditing:range:changeInLength:)](uikit/nstextstoragedelegate/textstorage(_:willprocessediting:range:changeinlength:).md)
- [textStorage(_:didProcessEditing:range:changeInLength:)](uikit/nstextstoragedelegate/textstorage(_:didprocessediting:range:changeinlength:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Processing the editing actions

- [delegate](uikit/nstextstorage/delegate.md)
