If we do not want to implement the init method in our class and remember that init in NSObject returns an instance of the object without initialization, I do not see the init call point if we already get an instance with alloc. I tried and it works, but I'm not sure that this will not cause future problems.
myClass *newObject = [myClass alloc];
instead:
myClass *newObject = [[myClass alloc] init];
Many thanks.
memory-management objective-c iphone cocoa-touch init
toupper
source share