---
title: weakToStrongObjects()
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nsmaptable/weaktostrongobjects()
---

# weakToStrongObjects()

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

## Declaration

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

## Return Value

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

## Discussion

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

- [init(keyOptions:valueOptions:capacity:)](foundation/nsmaptable/init(keyoptions:valueoptions:capacity:).md)
- [init(keyOptions:valueOptions:)](foundation/nsmaptable/init(keyoptions:valueoptions:).md)
- [init(keyPointerFunctions:valuePointerFunctions:capacity:)](foundation/nsmaptable/init(keypointerfunctions:valuepointerfunctions:capacity:).md)
- [strongToStrongObjects()](foundation/nsmaptable/strongtostrongobjects().md)
- [strongToWeakObjects()](foundation/nsmaptable/strongtoweakobjects().md)
- [weakToWeakObjects()](foundation/nsmaptable/weaktoweakobjects().md)
- [NSMapTableOptions](foundation/nsmaptableoptions.md)
