This is essentially correct. Why bother to decrement the retain count
when the object is going away after all...
On Sep 3, 2009, at 7:29 AM, Graham Cox wrote:
Relying on retain counts to tell you an object's state is not a good
idea. What I'm guessing is that the code internally looks something
along the lines of:
- (void) release
{
if( retainCount == 1 )
[self dealloc];
else
--retainCount;
}
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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