Also is there any case where we call alloc and not init after that?
What confuses me is things like
self= [super init]
Basically, if self is a pointer to the class, we're tell self to point to the address described by [super init]
The problem with that is self should already point to whatever address returned by alloc right?
So why change it?
What confuses me is things like
self= [super init]
Basically, if self is a pointer to the class, we're tell self to point to the address described by [super init]
The problem with that is self should already point to whatever address returned by alloc right?
So why change it?