remove undo actions for NSTextView
remove undo actions for NSTextView
- Subject: remove undo actions for NSTextView
- From: John Nairn <email@hidden>
- Date: Sun, 10 Oct 2004 10:05:41 -0600
I am using a single NSTextView in a window which can hold different
blocks of text selected from a list. After making changes the current
block is saved before the user selects another block for viewing.
The problem is that the undo is tied to the text view and if the undo
menu command is selected in the new text, it undoes the text changes
from the previous text by mistake.
I tried using removeAllActionsWithTarget using my text view as the
target, but it did not work. I guess the target of the undo's is not
the text view but something else?
Is there a way to correctly support undo in a text field in which the
text content can change by other user actions (e.g. selecting new block
for viewing in the list). Or how do I remove undo actions to a text
view when appropriate?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
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