Function

NSAllocateCollectable

Allocates collectable memory.

Declaration

void * NSAllocateCollectable(NSUInteger size, NSUInteger options);

Parameters

size

The number of bytes of memory to allocate.

options

0 or NSScannedOption: A value of 0 allocates non-scanned memory; a value of NSScannedOption allocates scanned memory.

Return Value

A pointer to the allocated memory, or NULL if the function is unable to allocate the requested memory.

See Also

Legacy

NSGarbageCollector

A convenient interface to the garbage collection system.

Deprecated
NSReallocateCollectable

Reallocates collectable memory.

NSMakeCollectable

Makes a newly allocated Core Foundation object eligible for collection.

Memory Allocation Options

Constants used to control behavior when allocating or reallocating collectible memory.