Instance Method


Overridden by subclasses to consolidate changes made since a previous beginEditing() message and to notify any observers of the changes.


func endEditing()


The NSMutableAttributedString implementation does nothing. NSTextStorage, for example, overrides this method to invoke fixAttributes(in:) and to inform its NSLayoutManager objects that they need to re-lay the text.

See Also

Grouping changes

func beginEditing()

Overridden by subclasses to buffer or optimize a series of changes to the receiver’s characters or attributes, until it receives a matching endEditing() message, upon which it can consolidate changes and notify any observers that it has changed.