NSTextView undo/redo question
NSTextView undo/redo question
- Subject: NSTextView undo/redo question
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 19 Aug 2001 09:47:08 -0400
NSTextView implements a method, setAllowsUndo:, which turns a text view's
built-in undo/redo behavior on and off.
My question: what is the target of the actions that are registered by
NSTextView's undo/redo routines?
I want to call NSUndoManager's removeAllActionsWithTarget: method in order
to clear the undo stack of actions relating to the text view, while leaving
other pending actions in the undo stack. But I can't identify a "target" for
this method that will work.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes