Re: NSTextView retainCount weirdness
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