Re: Seeing an objects retain count
Re: Seeing an objects retain count
- Subject: Re: Seeing an objects retain count
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 29 Apr 2002 18:48:25 -0700
On Sunday, April 28, 2002, at 08:33 PM, Ben Kennedy wrote:
On 28,04,02 at 11:35 pm -0400, Al Kirkus wrote:
Is there a simple way (instance method) to query an object for its
current retain count?
Yup, remarkably enough, -[NSObject retainCount].
I think it bears mentioning that you shouldn't care what an
object's retain count is, except for debugging purposes..
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.