Undo with a field editor
Undo with a field editor
- Subject: Undo with a field editor
- From: Darrin Cardani <email@hidden>
- Date: Thu, 25 Mar 2004 11:11:53 -0600
I have a custom subclass of NSTextView that I'm using as the field
editor for an NSTableView because I need some custom behavior. It
works pretty well for that. However, I'd like for the text view to
have its own undo manager, as the undo stack gets corrupt when the
user types something in a field then does some other undoable action.
So I've made my document the delegate of the field editor, I've set
the field editor to allow undo, and I've written an
-undoManagerForTextView: method that returns a different undo manager
for the field editor. However, my delegate's -undoManagerForTextView:
method never gets called. Why not?
Is there something else I need to do in this case?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.