• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Undo - Redo?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Undo - Redo?
      • From: Marcel Weiher <email@hidden>
References: 
 >Re: Undo - Redo? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: getting result of NSAlertPanel
  • Next by Date: Problem with NSURL/CFURL, and/or web servers?
  • Previous by thread: Re: Undo - Redo?
  • Next by thread: Re: Undo - Redo?
  • Index(es):
    • Date
    • Thread