Taking Notes

cause i'll forget

Beat Up in High School

We’ve all seen this:

[newObject retain];
[object release], object = nil;
object = newObject;

or this:

- (void)dealloc
    [object release], object = nil;
    [super dealloc];

I always see people who set things to nil right before they set them to something else or right before they cease to exist as people who just want exc_bad_access to stop punching them and they’ve adopted irrational coping mechanisms.