Re: menu madness with retain count
Re: menu madness with retain count
- Subject: Re: menu madness with retain count
- From: Jens Alfke <email@hidden>
- Date: Tue, 27 Apr 2010 12:57:22 -0700
On Apr 27, 2010, at 12:38 PM, vincent habchi wrote:
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.
That sounds like an optimization in the runtime to avoid a couple of
message-sends. You shouldn't override -retain or -release or make
assumptions about how many times they're called; those are
implementation details.
—Jens_______________________________________________
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