<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: 10.5.0 - 10.8.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSMapTable/mapTableWithWeakToWeakObjects",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMapTable(cm)mapTableWithWeakToWeakObjects"
  },
  "title" : "mapTableWithWeakToWeakObjects"
}
-->

# mapTableWithWeakToWeakObjects

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

```
+ (id) mapTableWithWeakToWeakObjects;
```

## Return Value

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

## Discussion

`NSMapTable` objects created using this method do not support weak references under Automatic Reference Counting (ARC).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)