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

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


References: 
 >Re: retainCount (From: Rosyna <email@hidden>)

  • Prev by Date: Re: global default for NSLayoutManager selection threshold?
  • Next by Date: NSEncoder question
  • Previous by thread: Re: retainCount
  • Next by thread: Re: Subclassing NSToolBar.
  • Index(es):
    • Date
    • Thread