Object Allocation
These functions may be used to create and destroy Objective-C objects, as well as to manage the reference counts of objects.
-
NSAllocateObject idNSAllocateObject(ClassaClass,unsignedextraBytes,NSZone*zone)-
NSCopyObject idNSCopyObject(idobject,unsignedextraBytes,NSZone*zone)-
NSDeallocateObject voidNSDeallocateObject(idobject)-
NSDecrementExtraRefCountWasZero BOOLNSDecrementExtraRefCountWasZero(idobject)-
NSExtraRefCount unsignedNSExtraRefCount(idobject)-
NSIncrementExtraRefCount voidNSIncrementExtraRefCount(idobject)-
NSShouldRetainWithZone BOOLNSShouldRetainWithZone(idanObject,NSZone*requestedZone)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access