Re: retainCount
Re: retainCount
- Subject: Re: retainCount
- From: Greg Titus <email@hidden>
- Date: Fri, 5 Oct 2001 21:44:39 -0700
On Friday, October 5, 2001, at 06:36 PM, Rosyna wrote:
So, from the different posts on the subject, it seems there is no way
to tell whether an object is in the autorelease pool or not? This seems
like a shortcoming. I'd even try using +showAllPools, then searching
the output to see if my object is in there, except there seems to be no
way to get the output.
Rosyna,
Could you please describe more completely why it is that you want to do
this? What is the pattern in your code that leads you to believe that
knowing the number of times an object has been autoreleased is necessary
or desirable?
My initial reaction, and obviously that of many of the other people
responding to this thread is: there's no reason to want to know, and you
must be overcomplicating your memory management if you think you need to
know.
Of course, it is possible that we are wrong, but you'll need to share
more of what you are attempting for anyone to be able to give any better
advice.
Thanks,
--Greg