Platforms to show: All Mac Windows Linux Cross-Platform

NSUndoManagerMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Text MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
NSUndoManager is a general-purpose recorder of operations for undo and redo.

You register an undo operation by specifying the object that's changing (or the owner of that object), along with a method to invoke to revert its state, and the arguments for that method. When performing undo an NSUndoManager saves the operations reverted so that you can redo the undos. If used in a Cocoa Application Kit-based application, NSUndoManager groups all operations within a single cycle of the run loop, so that performing an undo reverts all changes that occurred during the cycle.

NSUndoManager is implemented as a class of the Foundation framework because executables other than applications might want to revert changes to their states. For example, you might have an interactive command-line tool with undo and redo commands, or there could be distributed object implementations that can revert operations "over the wire." However, users typically see undo and redo as application features. The Application Kit implements undo and redo in its NSTextView object and makes it easy to implement it in objects along the responder chain.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no sub classes.

Some methods using this class:

Some events using this class:

Some examples using this class:


The items on this page are in the following plugins: MBS MacBase Plugin.


NSUbiquitousKeyValueStoreMBS   -   NSURLAuthenticationChallengeMBS


The biggest plugin in space...