---
title: endEditing()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsmutableattributedstring/endediting()
---

# endEditing()

Ends the buffering of changes to the string’s characters and attributes.

## Declaration

```swift
func endEditing()
```

## Discussion

Discussion Override this method in a subclass to consolidate changes made since a previous call to beginEditing(). When you call this method, the string notifies observers of the changes. The default implementation of this method does nothing. Subclasses such as NSTextStorage override this method and use it to tell the layout manager to update the text layout.

## See Also

### Related Documentation

- [processEditing()](appkit/nstextstorage/processediting().md)

### Grouping Changes

- [beginEditing()](foundation/nsmutableattributedstring/beginediting().md)
