Type Alias

NSMapTableOptions

Constants used as components in a bitfield to specify the behavior of elements (keys and values) in an NSMapTable object.

Declaration

typealias NSMapTableOptions = Int

Topics

Constants

NSMapTableStrongMemory

Specifies a strong reference from the map table to its contents.

NSMapTableCopyIn

Specifies use of the memory acquire function to allocate and copy items on input.

NSMapTableObjectPointerPersonality

Specifies use of shifted pointer hash and direct equality.

NSMapTableWeakMemory

Specify use of weak read and write barriers.

See Also

Creating and Initializing a Map Table

init(keyOptions: NSPointerFunctions.Options, valueOptions: NSPointerFunctions.Options)

Returns a new map table, initialized with the given options

class func strongToStrongObjects() -> NSMapTable<KeyType, ObjectType>

Returns a new map table object which has strong references to the keys and values.

class func weakToStrongObjects() -> NSMapTable<KeyType, ObjectType>

Returns a new map table object which has weak references to the keys and strong references to the values.

class func strongToWeakObjects() -> NSMapTable<KeyType, ObjectType>

Returns a new map table object which has strong references to the keys and weak references to the values.

class func weakToWeakObjects() -> NSMapTable<KeyType, ObjectType>

Returns a new map table object which has weak references to the keys and values.