Contents

weakToStrongObjects()

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

Declaration

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

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