Re: remove undo actions for NSTextView
Re: remove undo actions for NSTextView
- Subject: Re: remove undo actions for NSTextView
- From: Steven Spencer <email@hidden>
- Date: Mon, 11 Oct 2004 10:57:06 +0100
Use [myTextView textStorage] with removeAllActionsWithTarget.
>
------------------------------
>
>
Message: 5
>
Date: Sun, 10 Oct 2004 10:05:41 -0600
>
From: John Nairn <email@hidden>
>
Subject: remove undo actions for NSTextView
>
To: email@hidden
>
Message-ID: <email@hidden>
>
Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>
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