Is there any kind of memory-zeroing objective-c undertakes on my behalf when I first allocate a class instance? I see a lot of objective-c code out there that presumes their outlets are nil by default. If I do the same am I basing such behavior on false pretenses?
Is there any kind of memory-zeroing objective-c undertakes on my behalf when I first
Share
NSAllocateObjectreturns a block of memory large enough to include all the ivars in the class; itsisapointer is set to the class, and the rest of the block is filled with 0.+[NSObject alloc]calls+[NSObject allocWithZone:]which then callsNSAllocateObjectinternally.