• 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
NSTextView with Undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView with Undo


  • Subject: NSTextView with Undo
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sun, 7 Dec 2003 21:28:19 +0100

Hi all,

I'm having a problem with my NSTextView: undo doesn't work properly. That is:
1/ when typing, nothing appears in the Undo menu;
2/ when pasting, cutting, etc., I get "Undo Paste", etc.: but choosing these items has no effect in the text. OTOH the redo menu is updated, and also the dirty dot for the window.

I have a document-based application, with a subclass of NSWindowController controlling the document's window that contains only one NSTextView. There is no undo code at all at the moment, but I checked the "allows undo" for the text view in IB. (I tried to uncheck it, but then even the Paste operations are not registered in undo, as one can guess.)

What did I forget?
Thanks,

Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTextView with Undo
      • From: Jonathan Jackel <email@hidden>
  • Prev by Date: Re: Eaves dropping on application events
  • Next by Date: Re: Localizable string and Swedish characters
  • Previous by thread: ANNOUNCE: Renaissance 0.8.0
  • Next by thread: Re: NSTextView with Undo
  • Index(es):
    • Date
    • Thread