endEditing()
Ends the buffering of changes to the string’s characters and attributes.
Declaration
func endEditing()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.