On 2010 Aug 23, at 18:47, Gary L. Wade wrote: > Have you considered that the code for -release may be implemented in a > manner like this? > > -(oneway void)release > { > if (1 == self->retainCount) > { > // Let's save a few CPU cycles and not bother > // decrementing retainCount since it won't be > // around for long. > [self dealloc]; > } > else > { > self->retainCount--; > } > }
Yes, that's exactly how I believe it is implemented. Therefore the unqualified statement in the documentation that -release "Decrements the receiver’s reference count" is incorrect. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com