MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSUndoManagerMBS class

class, Cocoa, MBS CocoaBase Plugin (NSView), class NSUndoManagerMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: 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 for this class:

Some examples which use this class:

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

NSUbiquitousKeyValueStoreMBS   -   NSURLAuthenticationChallengeMBS

MBS Realbasic PDF Plugins