Sent from the NSText
method process
to notify the layout manager of an edit action.
SDKs
- iOS 7.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Frameworks
- UIKit
- App
Kit
Declaration
func processEditing(for textStorage: NSText Storage, edited editMask: NSText Storage.Edit Actions, range newCharRange: NSRange, changeInLength delta: Int, invalidatedRange invalidatedCharRange: NSRange)
func processEditing(for textStorage: NSText Storage, edited editMask: NSText Storage Edit Actions, range newCharRange: NSRange, changeInLength delta: Int, invalidatedRange invalidatedCharRange: NSRange)
Parameters
textStorage
The text storage object processing edits.
editMask
The types of edits done:
NSText
,Storage Edited Attributes NSText
, or both.Storage Edited Characters newCharRange
The range in the final string that was explicitly edited.
delta
The length delta for the editing changes.
invalidatedCharRange
The range of characters that changed as a result of attribute fixing. This invalidated range is either equal to
new
or larger.Char Range
Discussion
Layout managers must not change the contents of the text storage during the execution of this message.