Possible Duplicate:
alloc, init, and new in Objective-C
There is +alloc/-init...
and +new
. Their role are almost same in documentation except +new
is designed for instance pooling. (according to my understanding :)
However the pooling is possible with +alloc/-init
. Why the separated method is required? Or is there any reason for the method?
And I couldn't find any example utilizes the method. When should I use this method? Can I get some use-case of the method +new
?