Enumeration

Memory Allocation Options

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

Declaration

enum : NSUInteger {
    ...
};

Overview

These constants are used as components in a bitfield to specify the behavior of NSAllocateCollectable and NSReallocateCollectable.

Topics

Constants

NSScannedOption

Specifies allocation of scanned memory.

NSCollectorDisabledOption

Specifies that the block is retained, and therefore ineligible for collection. Specifying this option is equivalent to invoking disableCollectorForPointer: with the returned block as the argument.

See Also

Legacy

NSGarbageCollector

A convenient interface to the garbage collection system.

Deprecated
NSAllocateCollectable

Allocates collectable memory.

NSReallocateCollectable

Reallocates collectable memory.

NSMakeCollectable

Makes a newly allocated Core Foundation object eligible for collection.