Re: NSUndoManager & NSTableView editing
Re: NSUndoManager & NSTableView editing
- Subject: Re: NSUndoManager & NSTableView editing
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 26 Sep 2002 18:19:26 -0400
on 02-09-26 9:42 AM, Pete Yandell at email@hidden wrote:
>
Doesn't help! If I put a [[tableView window] makeFirstResponder:nil]
>
in the action method for my "add row" button, the graceful end to the
>
editing gets grouped in with the creation of the new row as far as the
>
undo manager is concerned. As long as they both happen within the one
>
cycle through the runloop they're going to be grouped, right?
Interesting. Well, all I know is that my app correctly distinguishes between
editing actions and row adding and deleting actions for purposes of the undo
manager. I record adding and deleting rows with the undo manager separately
from recording data changes to a row that's being edited. And I'm careful to
make sure I force live editing sessions in one row to come to an end before
another row gets added or deleted.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.