Re: -retain and -release Questions
Re: -retain and -release Questions
- Subject: Re: -retain and -release Questions
- From: Prachi Gauriar <email@hidden>
- Date: Sun, 4 Apr 2004 22:41:22 -0500
On Apr 4, 2004, at 10:14 PM, Cameron Hayne wrote:
On 3/7/04 2:20 AM, "Jerry Krinock" <email@hidden> wrote:
Generally, if I create (-alloc and -init) an object for temporary use
only within one method, I believe I need to -release this object
before the method returns. This is in contrast to C++, where objects
are automatically deleted when they go out of scope. Is this
correct?
As to leak-detection utilities, there are some supplied by Apple as
part ofthe dev tools - look under /Developer/Applications.
Perhaps a more useful link would be:
<
http://developer.apple.com/documentation/Performance/Conceptual/
ManagingMemory/index.html?
http://developer.apple.com/documentation/
Performance/Conceptual/ManagingMemory/Tasks/FindingLeaks.html>
-Prachi
_______________________________________________
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.