Undo/redo for NSTextView appearing in a sheet dialog
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