October 7th, 2013, 07:40 AM
Objects in Objective-C
I do not have a quite clear understanding about objects in Objective-c, so please help me answer my questions.
I know that you can create objects by just doing like the code below, but there is no allocated memory and it has not been initiated.
Class * myObject;
If I set it equal to this: [[Class alloc]init], what does it really mean? Why is the class's name used as the receiver of the alloc method?
Lastly, are objects really class pointers
If yes, how does this work?
I have been spending so much time thinking about this, and I hope you guys can help. :)
October 24th, 2013, 04:15 AM
You can easily create an object in objective-c like