If I have this code,
+ (MyCustomClass*) myCustomClass { return [[[MyCustomClass alloc] init] autorelease]; }
This code guarantees
When compiling with ARC, you simply write it as:
+ (MyCustomClass *)myCustomClass { return [[MyCustomClass alloc] init]; }
and the compiler/runtime will handle the rest for you.