Instance Method

zone

Returns a zone of unscanned memory.

Declaration

- (NSZone *)zone;

Return Value

A memory zone of memory that is not scanned.

Discussion

The collector provides a NSZoneMalloc-style allocation interface, primarily for compatibility with existing code that maintains zone affinity. Such memory is unscanned and you must free it using NSZoneFree.  This is exactly equivalent to calling NSAllocateCollectable with the option NSCollectorDisabledOption.

You should typically allocate garbage-collected memory using NSAllocateCollectable