A collection similar to an array, but with a broader range of available memory semantics.
- iOS 6.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A pointer array can be initialized to maintain strong or weak references to objects, or according to any of the memory or personality options defined by
When enumerating a pointer array with
for...in, the loop will yield any
nil values present in the array. See Fast Enumeration Makes It Easy to Enumerate a Collection in Programming with Objective-C for more information.
NSPointer is not suitable for subclassing.