Type Method

mapTableWithKeyOptions:valueOptions:

Returns a new map table, initialized with the given options

Declaration

+ (NSMapTable<KeyType, ObjectType> *)mapTableWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions;

Parameters

keyOptions

A bit field that specifies the options for the keys in the map table. For possible values, see NSMapTableOptions.

valueOptions

A bit field that specifies the options for the values in the map table. For possible values, see NSMapTableOptions.

Return Value

A new map table, initialized with the given options.

See Also

Creating and Initializing a Map Table

- initWithKeyOptions:valueOptions:capacity:

Returns a 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.

+ weakToStrongObjectsMapTable

Returns a new map table object which has weak references to the keys and strong references to the 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.