---
title: strongToWeakObjects()
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/nsmaptable/strongtoweakobjects()
---

# strongToWeakObjects()

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

## Declaration

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

## Return Value

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

## 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)
- [weakToStrongObjects()](foundation/nsmaptable/weaktostrongobjects().md)
- [weakToWeakObjects()](foundation/nsmaptable/weaktoweakobjects().md)
- [NSMapTableOptions](foundation/nsmaptableoptions.md)
