didModifyRange
DidModifyRange is a method associated with the text system used by Cocoa and Cocoa Touch, primarily within the NSTextStorage class of the Text Kit architecture. It serves as a hook for notifying that a specific portion of the text storage has been changed.
In the text system, edits to a text storage can affect its layout and rendering. didModifyRange provides
The method is generally considered a lower-level notification. It is often used in conjunction with other editing
Practical implications include more efficient rendering and layout updates when only a subset of text changes,
See also: NSTextStorage, NSLayoutManager, NSAttributedString, edited:range:changeInLength:.