Fugenx Technologies Private Limited
Fugenx Technologies Private Limited
Fugenx Technologies Private Limited
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Two - Stage Creation<br />
Coming back to NSObject’s base class method :<br />
The +alloc and +allocWithZone: methods each return a<br />
pointer to a newly allocated block of memory large enough to store an<br />
instance of the class that executed the method.<br />
The allocated memory contains zeros except for the one instance<br />
variable, isa, that all Objective-C objects are required to have.The<br />
isa variable is automatically initialized to point to the class object<br />
that allocated the memory and is the tie-in to the Objective-C language<br />
run- time that enables the instance to receive messages such as -init<br />
that are used to complete initialization.<br />
© 2011, FuGenX <strong>Technologies</strong> Confidential<br />
14