Re: temporarily disabling undo
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