Re: NSUndoManager & NSTableView editing
Re: NSUndoManager & NSTableView editing
- Subject: Re: NSUndoManager & NSTableView editing
- From: Hannes Friederich <email@hidden>
- Date: Thu, 26 Sep 2002 18:12:37 +0200
It's probably best to use -beginUndoGrouping / -endUndoGrouping outside the
dataSource of NSTableView, so that this particulary action only gets
executed when really needed.
You could f.ex use some similar code:
- (IBAction)addRow:(id)sender
{
if([tableView editedRow] != -1) {
//some code to end the editing of the row like deselecting it
//end the undoGroup
//begin a new undoGroup
}
//add a new row
}
-Hannes
_______________________________________________
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.