Possible Duplicate:
alloc and init what do they actually do
we do code like [[className alloc] init],so what actually happens in alloc and what happens in init,my understanding is that alloc will create instance of that class and allocate chunk of memory for that instance,then what is use of init?
thanks in advance.