• 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
Undo / Redo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Undo / Redo
      • From: Niko Matsakis <email@hidden>
  • Prev by Date: Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones)
  • Next by Date: next TextField with Enter key
  • Previous by thread: Re: Document-based application
  • Next by thread: Re: Undo / Redo
  • Index(es):
    • Date
    • Thread