• 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: NSUndoManager retain/release of arguments - ad infinitum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUndoManager retain/release of arguments - ad infinitum


  • Subject: Re: NSUndoManager retain/release of arguments - ad infinitum
  • From: Charles Srstka <email@hidden>
  • Date: Sat, 5 Feb 2011 23:16:52 -0600

On Feb 5, 2011, at 6:37 PM, John Bartleson wrote:

> Let me make one final point: this topic would have never come up if I had had a tool that would let me track the
> lifetime of an object. Very hypothetically, suppose I could write my code, execute it, and then, in the debugger or
> whatever, could issue a command like "Track someObjectName". During execution, I'd see the following:
>
> (timestamp) (code location) someObjectName: allocated
> (timestamp) (code location) someObjectName: init
> (timestamp) (code location) someObjectName: retained
> (timestamp) (code location) someObjectName: released
> (timestamp) (code location) someObjectName: released
> (timestamp) (code location) someObjectName: dealloc
>
> II realize that a tool like this appears to be against your stated philosophy, Graham, but it sure would
> have saved me and the Cocoa list a lot of time and frustration.

This is precisely what you can do (among with many other things) using the Instruments tool, included with Xcode.

Charles_______________________________________________

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: NSUndoManager retain/release of arguments - ad infinitum
      • From: Jerry Krinock <email@hidden>
References: 
 >Re: NSUndoManager retain/release of arguments - ad infinitum (From: John Bartleson <email@hidden>)

  • Prev by Date: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Next by Date: Re: Understanding CoreData
  • Previous by thread: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Next by thread: Re: NSUndoManager retain/release of arguments - ad infinitum
  • Index(es):
    • Date
    • Thread