Unfortunately, NSUndoManager does not provide access to its internal state. The best option is to simply write your own replacement override manager, or use an open source implementation like Graham Cox GCUndoManager . You will get access to the initial level, and just add support for NSCoding.
Alternatively, you can try to subclass NSUndoManager to support your separate serializable undo stack in addition to its normal database.
source
share