Correct implementation of undoManagerForTextView
Correct implementation of undoManagerForTextView
- Subject: Correct implementation of undoManagerForTextView
- From: Jeremy Dronfield <email@hidden>
- Date: Wed, 3 Mar 2004 18:32:45 +0000
My app has two separate text views (one in the main window, another in
a drawer). Each has its own separate delegate, and I want each to have
its own undo manager. (So that they can separately trigger an Unsaved
Changes warning.) The trouble is, I can't figure out the correct
implementation of the NSTextView delegate method:
- (NSUndoManager *)undoManagerForTextView:(NSTextView *)aTextView
{
return (what?);
}
There's no illumination in the FM, and I'm further confused by a
reference by Bill Cheeseman (Omni archives) to this as an NSWindow
delegate method, which it clearly isn't.
-Jeremy
========================================
email@hidden
theLocustFarm.net:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.