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

Re: NSTextView retainCount weirdness


  • Subject: Re: NSTextView retainCount weirdness
  • From: j o a r <email@hidden>
  • Date: Fri, 8 Jul 2005 12:24:37 +0200


On 8 jul 2005, at 12.17, Nicko van Someren wrote:

Apropos of this, is there a straight forward way to find out the count of pending (auto) releases on an object?

Counting the times that autorelease has been called for a particular object is not tricky - simply override and maintain your own counter. Knowing how many of them that are pending at a particular time is more difficult, as they are returned to you via a simple release. To know if a particular release event is sent from an autorelease pool, you need to check the backtrace. So, while you can do this while stepping through your code in the debugger, I'm not sure it's something that you can automate.


j o a r



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSTextView retainCount weirdness (From: Duncan Campbell <email@hidden>)
 >Re: NSTextView retainCount weirdness (From: j o a r <email@hidden>)
 >Re: NSTextView retainCount weirdness (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: NSTextView retainCount weirdness
  • Next by Date: potential endian-related problem?
  • Previous by thread: Re: NSTextView retainCount weirdness
  • Next by thread: Preferred behavior for handling NSTask's standardError
  • Index(es):
    • Date
    • Thread