Skip navigation.
 
mlRe: Out-of-order Undos and NSTextField
FROM : Bill Cheeseman
DATE : Mon Jul 10 21:53:52 2006

on 2006-07-10 3:29 PM, Ken Victor at <email_removed> 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_removed>
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

Related mailsAuthorDate
mlOut-of-order Undos and NSTextField James Bucanek Jul 8, 18:48
mlRe: Out-of-order Undos and NSTextField James Bucanek Jul 10, 01:32
mlRe: Out-of-order Undos and NSTextField Ken Victor Jul 10, 19:08
mlRe: Out-of-order Undos and NSTextField Bill Cheeseman Jul 10, 19:57
mlRe: Out-of-order Undos and NSTextField Ken Victor Jul 10, 21:29
mlRe: Out-of-order Undos and NSTextField Bill Cheeseman Jul 10, 21:53
mlRe: Out-of-order Undos and NSTextField James Bucanek Jul 10, 22:58
mlRe: Out-of-order Undos and NSTextField [SOLVED, well sort of] James Bucanek Jul 11, 21:05
mlRe: Out-of-order Undos and NSTextField [SOLVED, well sort of] Ken Victor Jul 11, 21:37
mlRe: Out-of-order Undos and NSTextField [SOLVED, well sort of] James Bucanek Jul 12, 00:04