• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
remove undo actions for NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Reports via NSView and NSString drawAtPoint:
  • Next by Date: Emailing RTF
  • Previous by thread: Re: Reports via NSView and NSString drawAtPoint:
  • Next by thread: Re: remove undo actions for NSTextView
  • Index(es):
    • Date
    • Thread