Re: Undo in tables
Re: Undo in tables
- Subject: Re: Undo in tables
- From: Brian Webster <email@hidden>
- Date: Sat, 13 Apr 2002 12:15:21 -0500
On Saturday, April 13, 2002, at 09:14 AM, cocoa-dev-
email@hidden wrote:
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.
Now this is one aspect of undo that I've heard contradicting
versions of - namely, whether or not arguments are retained by
NSUndoManager when you register an undo. I've seen several
people say that they are not retained, but every test that I've
ever run indicates that they are retained, via -[NSInvocation
retainArguments]. This is confirmed, at least in my apps, by
running OmniObjectMeter and looking at the retain/release
history. Perhaps the arguments are retained when using
prepareWithInvocationTarget: but not
registerUndoWithTarget:selector:object: ?
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.