<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAllMapTableValues(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@F@NSAllMapTableValues"
  },
  "title" : "NSAllMapTableValues(_:)"
}
-->

# NSAllMapTableValues(_:)

Returns all of the values in the specified table.

```
func NSAllMapTableValues(_ table: NSMapTable<AnyObject, AnyObject>) -> [Any]
```

## Return Value

An array object containing all the values in `table`. This function should be called only when `table` values are objects, not when they’re any other type of pointer.

## See Also

[`NSNextMapEnumeratorPair(_:_:_:)`](/documentation/Foundation/NSNextMapEnumeratorPair(_:_:_:))

Returns a Boolean value that indicates whether the next map-table pair in the enumeration are set.

[`NSMapMember(_:_:_:_:)`](/documentation/Foundation/NSMapMember(_:_:_:_:))

Indicates whether a given table contains a given key.

[`NSMapGet(_:_:)`](/documentation/Foundation/NSMapGet(_:_:))

Returns a map table value for the specified key.

[`NSEnumerateMapTable(_:)`](/documentation/Foundation/NSEnumerateMapTable(_:))

Creates an enumerator for the specified map table.

[`NSAllMapTableKeys(_:)`](/documentation/Foundation/NSAllMapTableKeys(_:))

Returns all of the keys in the specified map table.



---

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)