---
title: processEditing()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/nstextstorage/processediting()
---

# processEditing()

Cleans up changes to the text storage object and notifies its delegate and layout managers of changes.

## Declaration

```swift
func processEditing()
```

## Discussion

Discussion This method is automatically invoked in response to an edited(_:range:changeInLength:) message or an endEditing() message if edits were made within the scope of a beginEditing() block. You should never need to invoke it directly. This method begins by posting an willProcessEditingNotification to the default notification center (which results in the delegate receiving a textStorage(_:willProcessEditing:range:changeInLength:) message). Then it fixes attributes. After this, it posts an didProcessEditingNotification to the default notification center (which results in the delegate receiving a textStorage(_:didProcessEditing:range:changeInLength:) message). Finally, it sends a textStorage(_:edited:range:changeInLength:invalidatedRange:) message to each of the receiver’s layout managers using the argument values provided.

## See Also

### Managing edits

- [edited(_:range:changeInLength:)](uikit/nstextstorage/edited(_:range:changeinlength:).md)
