Enumeration Case


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


NSPointerFunctionsStrongMemory = (0UL << 0)


This is the default memory value.

As a special case, if you do not use garbage collection and specify this value in conjunction with NSPointerFunctionsObjectPersonality or NSPointerFunctionsObjectPointerPersonality then the NSPointerFunctions object uses retain and release.

If you do not use garbage collection, and specify this value in conjunction with a valid non-object personality, it is the same as specifying NSPointerFunctionsMallocMemory.

See Also

Memory Options


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


Take no action when pointers are deleted.


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


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


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software