Equivalent to NSPointer
.
SDKs
- iOS 6.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
const NSPointer Functions Options NSMapTableObjectPointerPersonality;
Equivalent to NSPointer
.
SDKs
Framework
const NSPointer Functions Options NSMapTableObjectPointerPersonality;
NSPointer Functions CString Personality
Use a string hash and strcmp
; C-string '%s
' style description.
NSPointer Functions Integer Personality
Use unshifted value as hash and equality.
NSPointer Functions Object Personality
Use hash
and is
methods for hashing and equality comparisons, use the description
method for a description.
NSPointer Functions Object Pointer Personality
Use shifted pointer for the hash value and direct comparison to determine equality; use the description
method for a description.
NSPointer Functions Opaque Personality
Use shifted pointer for the hash value and direct comparison to determine equality.
NSPointer Functions Struct Personality
Use a memory hash and memcmp
(using a size function that you must set—see size
).