• 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
Undo/redo for NSTextView appearing in a sheet dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undo/redo for NSTextView appearing in a sheet dialog


  • Subject: Undo/redo for NSTextView appearing in a sheet dialog
  • From: Mark Alldritt <email@hidden>
  • Date: Fri, 05 Nov 2004 15:23:35 -0800

Hi,

I want to have a panel (sheet) that displays a NSTextView.  This text view
is used to edit a (possibly long) block of descriptive text.  The problem is
that I cannot figure out how best to get Undo/Redo working while the panel
is open.  I don't want these undo/redo actions to be recorded against the
NSDocument subclass instance that has presented the panel.

I've read Bill C.'s Cocoa Recipes and lengths he has to go to to get
undo/redo working for NSTextField seem overkill.  Is there some easier means
of getting NSTextView to "do the right thing" in a panel?

Cheers
-Mark

---------------------------------------------------------------------
Mark Alldritt                         Late Night Software Ltd.
Phone: 250-380-1725                   333 Moss Street
FAX:   250-383-3204                   Victoria, B.C.
WEB:   http://www.latenightsw.com/    CANADA  V8V-4M9

 _______________________________________________
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

  • Follow-Ups:
    • Re: Undo/redo for NSTextView appearing in a sheet dialog
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Making a valid NSURL that contains Kanji characters
  • Next by Date: Re: Overriding -copyWithZone: the right way
  • Previous by thread: Re: Making a valid NSURL that contains Kanji characters
  • Next by thread: Re: Undo/redo for NSTextView appearing in a sheet dialog
  • Index(es):
    • Date
    • Thread