• 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: temporarily disabling undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: temporarily disabling undo


  • Subject: Re: temporarily disabling undo
  • From: glenn andreas <email@hidden>
  • Date: Wed, 26 Apr 2006 16:55:20 -0500


On Apr 26, 2006, at 4:44 PM, Peterson Trethewey wrote:

How do you temporarily disable undos in a document-based app?

I'm writing an animation program.  The animation plays in the same
window where you edit, but editing while the animation is playing
shouldn't be allowed.  The problem is that I'm handling undos using
prepareInvocationWithTarget, so nothing prevents the user from undoing
while playing and that messes things up.  So, I need to turn off the
undo machine.  Is there a proper way to do that?

Can your document return nil for -undoManager when the animation is playing? I think you'll also need to have -hasUndoManager return NO as well at that point (or else a new one will be made).



Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Dominogy | Just place all the dominos on the board...

_______________________________________________
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


References: 
 >temporarily disabling undo (From: "Peterson Trethewey" <email@hidden>)

  • Prev by Date: Re: Recursive functions and stack overload
  • Next by Date: Pixel Editing
  • Previous by thread: temporarily disabling undo
  • Next by thread: Pixel Editing
  • Index(es):
    • Date
    • Thread