NSUndoManager - clearing a single 'redo'
NSUndoManager - clearing a single 'redo'
- Subject: NSUndoManager - clearing a single 'redo'
- From: Bruce Veazie <email@hidden>
- Date: Sun, 8 Dec 2002 20:59:40 -0500
Is there a way to prevent an 'undo' from being transferred to the
'redo' stack or to clear just the last redo?
I'm developing a document-based OpenGL modelling app. When an object is
loaded from a file I register an 'undo load object' which deletes the
object - to permit the user to delete an object just loaded if it's the
wrong file, etc. When Cmd-z is used to undo the load, i.e., delete the
erroneously loaded object, a 'Redo load object' gets stacked. I'd
prefer not to have that 'redo' on the stack.
Anyone know of a way to clear that single 'redo load' when the 'undo
load' is invoked?
Bruce J. Veazie
email@hidden
http://veazie.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.