• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Design for cleaning up Undo for a tree of objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Design for cleaning up Undo for a tree of objects
      • From: Graham Cox <email@hidden>
References: 
 >Design for cleaning up Undo for a tree of objects (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Getting a bezier path for a character
  • Next by Date: Re: Design for cleaning up Undo for a tree of objects
  • Previous by thread: Design for cleaning up Undo for a tree of objects
  • Next by thread: Re: Design for cleaning up Undo for a tree of objects
  • Index(es):
    • Date
    • Thread