Enumeration Case

NSPointerFunctionsOpaqueMemory

Take no action when pointers are deleted.

Declaration

NSPointerFunctionsOpaqueMemory = (2UL << 0)

Discussion

This is usually the preferred memory option for holding arbitrary pointers.

This is essentially a no-op relinquish function; the acquire function is only used for copy-in operations. This option is unlikely a to be a good choice for objects.

See Also

Memory Options

NSPointerFunctionsMallocMemory

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

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.

NSPointerFunctionsZeroingWeakMemory

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

Deprecated