Enumeration Case

NSPointerFunctionsZeroingWeakMemory

Use weak read and write barriers; use garbage-collected memory on copyIn.

Declaration

NSPointerFunctionsZeroingWeakMemory = (1UL << 0)

Discussion

If you do not use garbage collection, for object personalities, it will hold a non-retained object pointer.

See Also

Memory Options

NSPointerFunctionsMallocMemory

Use free() on removal, calloc() on copy in.

NSPointerFunctionsOpaqueMemory

Take no action when pointers are deleted.

NSPointerFunctionsStrongMemory

Use strong write-barriers to backing store; use garbage-collected memory on copy-in.

NSPointerFunctionsWeakMemory

Uses weak read and write barriers appropriate for ARC or GC. Using NSPointerFunctionsWeakMemory object references will turn to NULL on last release.