NSUndoManager and undo history
NSUndoManager and undo history
- Subject: NSUndoManager and undo history
- From: David Catmull <email@hidden>
- Date: Sat, 22 Apr 2006 15:10:21 -0700
I want to have a history window like Photoshop, which shows the
contents of the undo/redo stack and lets the user jump to any point
in the stack by clicking in the list. The basic problem is there
doesn't seem to be any way to access NSUndoManager's undo/redo stacks.
What would be cool would be to do this with bindings, where the undo/
redo stack is managed by an NSArrayController. The undo stack would
be in effect everything up to and including the current selection,
and the redo stack is everything after.
There are two ways to do that: either subclass NSUndoManager or
replace it. Subclassing means maintaining my own copy of the undo/
redo stack, which is error-prone. Replacing it is just plain a lot of
work.
Has anyone tackled this problem before? Is anyone interested in
tackling it with me?
--
David Catmull
email@hidden
http://www.uncommonplace.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden