• 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: Nick Zitzmann <email@hidden>
  • Date: Sat, 3 Jul 2004 15:53:03 -0600

On Jul 3, 2004, at 1:11 PM, Jonathan Jackel wrote:

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]);

Or, to do that in the debugger console:

print (unsigned int)[yourObject retainCount]

The GDB documentation is your friend: <file:///Developer/Documentation/DeveloperTools/gdb/gdb/gdb_toc.html>

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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: Releasing memory (From: Jonathan Jackel <email@hidden>)

  • Prev by Date: Re: ATSUI, AAT and OpenType
  • Next by Date: Extracting double or float from an NSAppleEventDescriptor
  • Previous by thread: Re: Releasing memory
  • Next by thread: AppleScript with invalid file name
  • Index(es):
    • Date
    • Thread