• 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
NSUndoManager and undo history
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager and undo history


  • Subject: NSUndoManager and undo history
  • From: David Catmull <email@hidden>
  • Date: Sat, 22 Apr 2006 15:10:21 -0700

I want to have a history window like Photoshop, which shows the contents of the undo/redo stack and lets the user jump to any point in the stack by clicking in the list. The basic problem is there doesn't seem to be any way to access NSUndoManager's undo/redo stacks.

What would be cool would be to do this with bindings, where the undo/ redo stack is managed by an NSArrayController. The undo stack would be in effect everything up to and including the current selection, and the redo stack is everything after.

There are two ways to do that: either subclass NSUndoManager or replace it. Subclassing means maintaining my own copy of the undo/ redo stack, which is error-prone. Replacing it is just plain a lot of work.

Has anyone tackled this problem before? Is anyone interested in tackling it with me?

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
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: NSUndoManager and undo history
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Keyboard Events in Modal NSWindow (Part 2)
  • Next by Date: Re: Keyboard Events in Modal NSWindow (Part 2)
  • Previous by thread: Re: How do I implement a splash window
  • Next by thread: Re: NSUndoManager and undo history
  • Index(es):
    • Date
    • Thread