Re: menu madness with retain count
Re: menu madness with retain count
- Subject: Re: menu madness with retain count
- From: vincent habchi <email@hidden>
- Date: Tue, 27 Apr 2010 21:38:12 +0200
Le 27 avr. 2010 à 21:21, Scott Ribe a écrit :
>> By the way, how are exactly multiple calls to [object autorelease] handled by the pool? Does this give rise to as many calls to release: as they are autorelease references stored, or does the pool directly adjust the retain count?
>
> Why would you care?
Because earlier in this afternoon I decided to trace the retain/release messages sent to an object by overriding the respective methods and have them write the retain count before calling super methods. I registered most curious behaviors, for example objects released while the last time their retain count was printed it was equal to 2. No 1, no 0. That's why I asked, just to know if autorelease does not short-circuit the traditional release: call by accessing the retain count directly.
Vincent_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden