Re: NSUndoManager retain/release of arguments - ad infinitum
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