Equivalent to strong
.
SDKs
- iOS 6.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
let NSMapTableStrongMemory: NSPointer Functions.Options
Equivalent to strong
.
SDKs
Framework
let NSMapTableStrongMemory: NSPointer Functions.Options
static var mach Virtual Memory: NSPointer Functions .Options
Use Mach memory.
static var malloc Memory: NSPointer Functions .Options
Use free()
on removal, calloc()
on copy in.
static var opaque Memory: NSPointer Functions .Options
Take no action when pointers are deleted.
static var strong Memory: NSPointer Functions .Options
Use strong write-barriers to backing store; use garbage-collected memory on copy-in.
static var weak Memory: NSPointer Functions .Options
Uses weak read and write barriers appropriate for ARC or GC. Using NSPointerFunctionsWeakMemory object references will turn to NULL
on last release.