Re: Undo in tables
Re: Undo in tables
- Subject: Re: Undo in tables
- From: Raphael Sebbe <email@hidden>
- Date: Sat, 13 Apr 2002 15:51:31 +0200
On Saturday, April 13, 2002, at 02:09 PM, Bill Cheeseman wrote:
on 02-04-12 12:47 PM, Raphael Sebbe at email@hidden wrote:
Perhaps this can help you, http://www.ex-
cinder.com/downloads/undo-article.rtf
This is an article on which I worked some time ago, still in draft
state
and not published but there's quite a lot of information in it.
Thanks. I'm a strong believer in sharing what one has learned, and I
appreciate your thoughtfulness in sending me this.
I have a couple of comments.
1. Near the end of the article, you talke about methods to suspend and
resume undo registration. I use the built-in NSUndoManager methods
disableUndoRegistration and enableUndoRegistration for this. I haven't
studied your examples carefully enough to be sure this is applicable
there,
but I thought I would mention it. If you use these to bracket calls that
would normally register with the undo manager, they won't register even
though there code tells them to. I find this especially useful during
object
initialization, but also in other circumstances.
Good point. Speaking of the example, this is an alternative to using the
"manipulating" BOOL. I was not aware of those methods (I should read the
doc more closely...). But saving the old size still has to be done, the
point being to only store 1 undo operation for the entire mouse
down-drag-up events.
2. In your discussion of create/delete methods, you mention the need to
maintain a pool of deleted methods available for redo-recreate. But you
don't give an example. I'm about to implement that myself, and I think
your
readers would like to see an example of how to do this. I know I
would! --
but don't write it for me, because I'll be done by the end of the day.
Again, good point. I'll do it before it is 'officially' published.
Thanks for the comments,
Raphael
_______________________________________________
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.