Undo/Redo functionality in a Cocoa application – NSUndoManager
This article will give you an overview of adding undo and redo functionality to a cocoa application by an example that undo/redo addition and deletion of rows in a TableView.
Lets start with How Undo Manager works?
As per Apple’s Reference Guide “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.” Read the rest of this entry