Re: monitoring retainCount
Re: monitoring retainCount
>
Von: Stefan Fisk <email@hidden>
>
Datum: Wed, 26 May 2004 13:44:15 +0200
>
An: email@hidden
>
Betreff: monitoring retainCount
>
>
is there any way to monitor retainCount for an object?
>
i'm writing a file based NSMutableArray subclass, and i would like it
>
if objectAtIndex: could return the same object throughout the object's
>
lifetime, to preserve memory etc..
>
_______________________________________________
>
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.
Hi,
I hope this can help you ( it's from the the cocoa documentation):
You might find it necessary to determine what is the retain count for an
object.
From the gdb console in Xcode enter:
print (int)[theObject retainCount]
If you are using gdb from a Terminal, you can also examine the retain count
using the command line.
Gvtz
_______________________________________________
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.