• 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
Archiving undos? NSUndoManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Archiving undos? NSUndoManager


  • Subject: Archiving undos? NSUndoManager
  • From: Scott Squires <email@hidden>
  • Date: Sun, 14 Jun 2009 13:21:52 -0700

I have an app currently with my own simple undo of a single instance. When the app quits I'm able to save and later restore the undo info.
I've now switched to using the NSUndoManager and multiple levels of complex undos.


On a desktop system the user quits and normally you just dispose of the undos.
This is on the iphone however. They may have to quit in the middle of something (incoming call, text msg, catch a flight, etc)


Is there a simple method to archive the undo structure and restore it?
These are not CoreData items and they could be a wide range of data.

I could fold all the undo info into objects that are used in the undomanager methods and then reading those back and archive them
But there seems to be no way to have access to the stacks themselves.


I could keep my own stacks and try to keep sync with the NSUndoManager notifications.
But even if I archive these there would seem to be no way to restore the redo stack since there's no access to it.


Am I overlooking something here or is there a normal process that allows this?
Thanks.





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Coming up with ideas
  • Next by Date: Re: Positioning of autocomplete popups
  • Previous by thread: Re: Correct MVC code placement
  • Next by thread: Get Key Commands in Fullscreen
  • Index(es):
    • Date
    • Thread