Re: Undo - Redo?
Re: Undo - Redo?
- Subject: Re: Undo - Redo?
- From: Manfred Lippert <email@hidden>
- Date: Fri, 26 Apr 2002 14:53:30 +0200
>
In a standard implementation of undo/redo, choosing undo invokes the undo
>
action you registered, applying the original values that you registered it
>
with, and then automatically moves the action from the undo stack to the
>
redo stack. Then, when you choose redo, the action is invoked again ...
Uhm? I think, here is my problem: My Undo Action is _not_ called when I
choose redo. Why can this be?
I am doing this in my document controller (subclass of NSDocument):
[[self undoManager]
registerUndoWithTarget:self
selector:@selector(undoAction:)
object:theObject];
If I do undo, my selector "undoAction" is called with the parameter
"theObject". This is correct and works.
But when I do redo after that, the action is _not_ called. Nothing happens.
I don't know why. Do I have to do something special in my undoAction?
Regards,
Mani
_______________________________________________
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.