Re: Documentation for -release is not quite true

2010-08-23 Thread Jerry Krinock
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 retainC

Re: Documentation for -release is not quite true

2010-08-23 Thread Daniel DeCovnick
That's exactly what Jerry just suggested was happening, however the documentation implies that it's implemented more like -(oneway void)release { self->retainCount--; if (0 == self->retainCount) [self dealloc]; } But it doesn't really matter since you should neve

Re: Documentation for -release is not quite true

2010-08-23 Thread Gary L. Wade
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. [se