On Feb 18, 2005, at 1:53 PM, Richard Gaskin wrote:

Any of you have pointers to general methods for implemening undo across an app?

In a simple case, I have each undoable action push a line onto the end of a bunch of lines in a global. For an undo, the code simply pops the line and gives it to 'do'.


To keep from getting confused, I put each undoable action in a handler with a name, say 'abc' and it uses the handler 'undoAbc' in the line pushed onto the end of the undo list.

Dar

--
**********************************************
    DSC (Dar Scott Consulting & Dar's Lab)
    http://www.swcp.com/dsc/
    Programming Services and Software
**********************************************

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to