Global Variable

NSUndoManagerWillCloseUndoGroupNotification

Posted before an NSUndoManager object closes an undo group, which occurs in the implementation of the endUndoGrouping method.

Declaration

const NSNotificationName NSUndoManagerWillCloseUndoGroupNotification;

Discussion

The notification object is the NSUndoManager object. Prior to OS X v10.7 this notification did not contain a userInfo dictionary. In macOS 10.7 and later the userInfo dictionary may contain the NSUndoManagerWillCloseUndoGroupNotification key, with a NSNumber boolean value of YES, if the undo group as a whole is discardable.

See Also

Notifications

NSUndoManagerCheckpointNotification

Posted whenever an NSUndoManager object opens or closes an undo group (except when it opens a top-level group) and when checking the redo stack in canRedo.

NSUndoManagerDidOpenUndoGroupNotification

Posted whenever an NSUndoManager object opens an undo group, which occurs in the implementation of the beginUndoGrouping method.

NSUndoManagerDidRedoChangeNotification

Posted just after an NSUndoManager object performs a redo operation (redo).

NSUndoManagerDidUndoChangeNotification

Posted just after an NSUndoManager object performs an undo operation.

NSUndoManagerDidCloseUndoGroupNotification

Posted after an NSUndoManager object closes an undo group, which occurs in the implementation of the endUndoGrouping method.

NSUndoManagerWillRedoChangeNotification

Posted just before an NSUndoManager object performs a redo operation (redo).

NSUndoManagerWillUndoChangeNotification

Posted just before an NSUndoManager object performs an undo operation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software