UndoManagerMonitor
public class UndoManagerMonitor : BaseNotificationMonitor
An UndoManagerMonitor instance monitors an undo manager for changes to
its recording of operations.
-
Encapsulates changes to the undo manager.
See moreDeclaration
Swift
public enum Event -
Specifies which events to monitor.
See moreDeclaration
Swift
public struct Options : OptionSet -
Initializes a new
UndoManagerMonitor.Declaration
Parameters
undoManagerThe undo manager 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 there is a change to the undo manager’s recording of operations.
-
The undo manager being monitored.
Declaration
Swift
public let undoManager: UndoManager -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
UndoManagerMonitor Class Reference