Introduction to Undo Architecture
This topic describes how to record operations with
NSUndoManager, so the user can reverse an operation’s effect. Undo and redo operations and the
NSUndoManager class are available on both iOS and OS X.
You should read this document to learn how to use an undo manager in your application.
Organization of This Document
This document contains the following articles:
Undo Manager provides a conceptual overview of the object which records operations for undo and redo.
Registering Undo Operations describes how to add operations to the undo stack.
Performing Undo and Redo describes how to perform undo and redo operations.
Clearing the Undo Stack describes how to remove operations from the undo stack.
Setting Action Names describes how to provide custom names for the Undo and Redo menu items.
Using Undo in AppKit-Based Applications describes the Application Kit’s additions to undo.
Using Undo Notifications describes synchronizing using notifications.