Re: NSUndoManager & NSTableView editing
Re: NSUndoManager & NSTableView editing
- Subject: Re: NSUndoManager & NSTableView editing
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 27 Sep 2002 06:01:22 -0400
on 02-09-27 1:14 AM, James DiPalma at email@hidden wrote:
>
Great. If you have an application where undo operations are isolated
>
into separate undo groupings, then we can probably figure out how your
>
app behaves differently even though Pete describes a nearly identical
>
set of user actions and program execution.
I'm afraid I misremembered what I had done. Many apologies. (This is what I
get for trying to contribute to the mailing lists and to proofread 800 pages
of page proofs at the same time.)
I did in fact give up on a similar problem. Instead, I dealt with it (or,
rather, avoided it) by disabling the add and delete buttons while a row is
being edited.
The situation with my application is muddied. My app implements "live" undo
and redo of editing in text fields, form fields and table cells. I
manipulate the undo and redo stacks when the user commits the data, so as to
remove the intermediate editing commands when Return, Enter, etc. is
pressed. I had encountered a problem similar to the one you describe, but I
was focusing on these live undo routines as the source of the problem. Hence
my mental disconnect.
I still remember having this working with abortEditing (for delete row) and
endEditingFor: (for add row) before implementing my live undo routines. But
I no longer trust my memory. I will take another look at the issue (once
page proofs are corrected).
--
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.