What's the point of this in objective-c

Posted by Mk12 on Stack Overflow See other posts from Stack Overflow or by Mk12
Published on 2009-07-31T04:39:32Z Indexed on 2010/05/11 16:34 UTC
Read the original article Hit count: 300

SomeObject *temp = [[SomeObject alloc] init]
self.theObject = temp;
[temp release];

Why is it always done that way? Why not

self.theObject = [[SomeObject alloc] init];

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c