 |
Cocoa with Love: Alternative Objective-C object allocation for large arrays
Step one, allocate the C array (using calloc to obey Objective-C conventions): const NSInteger arrayLength = /* some array length */; Class someClass = [SomeClass class]; NSInteger runtimeInstanceSize = class_getInstanceSize(someClass); char Notice that .
www.cocoawithlove.com |
 |