Re: Design for cleaning up Undo for a tree of objects
Re: Design for cleaning up Undo for a tree of objects
- Subject: Re: Design for cleaning up Undo for a tree of objects
- From: Jens Alfke <email@hidden>
- Date: Tue, 27 Apr 2010 19:00:50 -0700
On Apr 27, 2010, at 6:55 PM, Graham Cox wrote:
Here's the problem: Any tasks on the undo stack that refer to a
particular target must be removed when that target is dealloced.
I don't know your app, but this sounds backwards to me. Don't tasks/
nodes need to be kept around for as long as an undo item refers to
them? Otherwise, what happens when the user tries to undo/redo that
step?
In other words, I would expect that an undo item would have strong
references to the tree nodes it affects.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden