• 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: Undo in tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Undo in tables
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Distorted System Sounds
  • Next by Date: Re: Calling IB Actions In PB
  • Previous by thread: Re: Undo in tables
  • Next by thread: Re: Undo in tables
  • Index(es):
    • Date
    • Thread