• 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: Releasing memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Releasing memory


  • Subject: Re: Releasing memory
  • From: Jonathan Jackel <email@hidden>
  • Date: Sat, 3 Jul 2004 12:11:31 -0700

On Jun 17, 2004, at 12:50 AM, Michael Curtis wrote:

Hi,

I am new to cocoa and am having trouble getting my head around when to release objects. Is their anyway in x-code/debugger to see the retain count of an object

NSLog(@"Retain count = %d", [yourObject retainCount]);

and at the end of a program being run to check everything is released?

You don't need to worry about this. When an application terminates, the operating system reclaims all of the app's memory, regardless of whether objects have been properly released or not.

Jonathan
_______________________________________________
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: Releasing memory
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Draggable Tags?
  • Next by Date: AppleScript with invalid file name
  • Previous by thread: Re: Setting NSPopUpButtonCell Value from NSTable
  • Next by thread: Re: Releasing memory
  • Index(es):
    • Date
    • Thread