Undo / Redo
Undo / Redo
- Subject: Undo / Redo
- From: Jeff LaMarche <email@hidden>
- Date: Thu, 6 Oct 2005 15:26:24 -0400
I've got a question about Undo and Redo. I just wrote a little app to
learn how to do undo. Based on stuff I read, and the input of some
people on the list, I decided to put my undo code in my controller
classes rather than in the model.
The situation I've got now, is that undo works beautifully, but redo
doesn't work at all.
Now, I think I don't understand how undo works. None of the undo
actions I register with the undo controller registers an undo, which
I'm guessing is the problem. If the system is undoing, then undos you
register go into the Redo stack? So, In addition to resetting
controls and my data model, the undo manager has to basically
register an undo when it's undoing the action in order for Redo to
work? Is that correct?
I guess I had assumed that Redo would happen automatically, which was
probably a stupid assumption, now that I think about it. =)
If anyone can help clarify this for me, I'd appreciate it, as I'm a
little confused.
Thanks much
Jeff
_______________________________________________
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