Contents

NSUndoManagerWillCloseUndoGroup

Posted before an undo manager closes an undo group.

Declaration

static let NSUndoManagerWillCloseUndoGroup: NSNotification.Name

Discussion

This notification originates in the implementation of the endUndoGrouping() method.

The notification object is the UndoManager object. Prior to OS X v10.7 this notification didn’t contain a userInfo dictionary. In macOS 10.7 and later the userInfo dictionary may contain the NSUndoManagerWillCloseUndoGroup key, with a NSNumber Boolean value of YES, if the undo group as a whole is discardable.

The system posts this notification on the actor, thread, or dispatch queue that calls endUndoGrouping().

See Also

Working with notifications