TextStorageMonitor
public class TextStorageMonitor : BaseNotificationMonitor
A TextStorageMonitor instance monitors a text storage for the processing
of edits to its contents.
-
Encapsulates the processing of edits to the contents of the text storage.
See moreDeclaration
Swift
public enum Event -
Specifies which events to monitor.
See moreDeclaration
Swift
public struct Options : OptionSet -
Initializes a new
TextStorageMonitor.Declaration
Parameters
textStorageThe text storage to monitor.
optionsThe options that specify which events to monitor. By default, all events are monitored.
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the text storage has processed or is about to process edits to its contents.
-
The text storage being monitored.
Declaration
Swift
public let textStorage: NSTextStorage -
Declaration
Swift
public override func addNotificationObservers()
View on GitHub
Install in Dash
TextStorageMonitor Class Reference