I've just downloaded the Facebook iOS SDK and I noticed that in the sample code that comes with the SDK whenever it creates an instance of the Facebook class it does it like this:
_facebook = [[[[Facebook alloc] init] autorelease] retain];
where _facebook
is a member variable of the calling object (i.e. not a local variable).
Can anyone explain exactly what's the point of autoreleasing and then retaining it?