---
title: "NSAllHashTableObjects(_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsallhashtableobjects(_:)"
---

# NSAllHashTableObjects(_:)

Returns all of the elements in the specified hash table.

## Declaration

```swift
func NSAllHashTableObjects(_ table: NSHashTable<AnyObject>) -> [Any]
```

## Return Value

Return Value An array object containing all the elements of table.

## Discussion

Discussion This function should be called only when the table elements are objects, not when they’re any other data type.

## See Also

### Related Documentation

- [NSCreateHashTable(_:_:)](foundation/nscreatehashtable(_:_:).md)
- [NSFreeHashTable(_:)](foundation/nsfreehashtable(_:).md)

### Functions

- [NSCompareHashTables(_:_:)](foundation/nscomparehashtables(_:_:).md)
- [NSCopyHashTableWithZone(_:_:)](foundation/nscopyhashtablewithzone(_:_:).md)
- [NSCountHashTable(_:)](foundation/nscounthashtable(_:).md)
- [NSCreateHashTable(_:_:)](foundation/nscreatehashtable(_:_:).md)
- [NSCreateHashTableWithZone(_:_:_:)](foundation/nscreatehashtablewithzone(_:_:_:).md)
- [NSEndHashTableEnumeration(_:)](foundation/nsendhashtableenumeration(_:).md)
- [NSEnumerateHashTable(_:)](foundation/nsenumeratehashtable(_:).md)
- [NSFreeHashTable(_:)](foundation/nsfreehashtable(_:).md)
- [NSHashGet(_:_:)](foundation/nshashget(_:_:).md)
- [NSHashInsert(_:_:)](foundation/nshashinsert(_:_:).md)
- [NSHashInsertIfAbsent(_:_:)](foundation/nshashinsertifabsent(_:_:).md)
- [NSHashInsertKnownAbsent(_:_:)](foundation/nshashinsertknownabsent(_:_:).md)
- [NSHashRemove(_:_:)](foundation/nshashremove(_:_:).md)
- [NSNextHashEnumeratorItem(_:)](foundation/nsnexthashenumeratoritem(_:).md)
- [NSResetHashTable(_:)](foundation/nsresethashtable(_:).md)
