<!--
{
  "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/NSHashTableOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSHashTableOptions"
  },
  "title" : "NSHashTableOptions"
}
-->

# NSHashTableOptions

Components in a bit-field to specify the behavior of elements in an [`NSHashTable`](/documentation/Foundation/NSHashTable) object.

```
typealias NSHashTableOptions = Int
```

## Topics

### Constants

[`NSHashTableStrongMemory`](/documentation/Foundation/NSHashTableStrongMemory)

Equal to [`strongMemory`](/documentation/Foundation/NSPointerFunctions/Options/strongMemory).

[`NSHashTableZeroingWeakMemory`](/documentation/Foundation/NSHashTableZeroingWeakMemory)

This option has been deprecated. Instead use the `NSHashTableWeakMemory` option. Equal to [`NSPointerFunctionsZeroingWeakMemory`](/documentation/Foundation/NSPointerFunctionsOptions/NSPointerFunctionsZeroingWeakMemory).

[`NSHashTableCopyIn`](/documentation/Foundation/NSHashTableCopyIn)

Equal to [`copyIn`](/documentation/Foundation/NSPointerFunctions/Options/copyIn).

[`NSHashTableObjectPointerPersonality`](/documentation/Foundation/NSHashTableObjectPointerPersonality)

Equal to [`objectPointerPersonality`](/documentation/Foundation/NSPointerFunctions/Options/objectPointerPersonality).

[`NSHashTableWeakMemory`](/documentation/Foundation/NSHashTableWeakMemory)

Equal to [`weakMemory`](/documentation/Foundation/NSPointerFunctions/Options/weakMemory). Uses weak read and write barriers appropriate for ARC or GC. Using [`weakMemory`](/documentation/Foundation/NSPointerFunctions/Options/weakMemory) object references will turn to `NULL` on last release.



---

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)