• 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: -retain and -release Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: -retain and -release Questions (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: Is the internet avaliable question
  • Next by Date: archiving: Non-aligned pointer being freed
  • Previous by thread: Re: -retain and -release Questions
  • Next by thread: archiving: Non-aligned pointer being freed
  • Index(es):
    • Date
    • Thread