Re: Out-of-order Undos and NSTextField
Re: Out-of-order Undos and NSTextField
- Subject: Re: Out-of-order Undos and NSTextField
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 10 Jul 2006 15:53:52 -0400
- Thread-topic: Out-of-order Undos and NSTextField
on 2006-07-10 3:29 PM, Ken Victor at email@hidden wrote:
> what do you mean by "live undo"?
>
> the problem here is NOT that undo doesn't work, its that the undo
> "chain" in working in the wrong order! edit a NSTextField, change a
> popup in the same window and register for its undo. hit undo; the
> text field undoes and then the popup, NOT the proper order!
"Live undo" of text fields is my term for undo while you're still typing
within a text field. It's for those times when you type in an address, then
backspace to erase it and type in a different address, then decide you want
to go back to the first one after all. Just choose Undo before committing
the text field's value, and the erased address comes back. After you commit
the text field, you can undo back to its previous value using standard
techniques, but by then you've lost the intermediate "live" values.
Implementing this involved dealing with the kind of issues you're talking
about, because I kept messing up the undo stacks and getting things out of
order, until I finally figured out how to do it.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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