Type Method

weakToStrongObjectsMapTable

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

Declaration

+ (NSMapTable<KeyType, ObjectType> *)weakToStrongObjectsMapTable;

Return Value

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

Discussion

Use of weak-to-strong map tables is not recommended. The strong values for weak keys which get zeroed out continue to be maintained until the map table resizes itself.

See Also

Creating and Initializing a Map Table

- initWithKeyOptions:valueOptions:capacity:

Returns a map table, initialized with the given options.

+ mapTableWithKeyOptions:valueOptions:

Returns a new map table, initialized with the given options

- initWithKeyPointerFunctions:valuePointerFunctions:capacity:

Returns a map table, initialized with the given functions.

+ strongToStrongObjectsMapTable

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

+ strongToWeakObjectsMapTable

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

+ weakToWeakObjectsMapTable

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

NSMapTableOptions

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