Deprecated NSHashTable Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.8


Returns a new hash table for storing weak references to its contents. (Deprecated in OS X v10.8. Use weakObjectsHashTable instead.)

+ (id)hashTableWithWeakObjects
Return Value

A new has table that uses the options NSHashTableZeroingWeakMemory and NSPointerFunctionsObjectPersonality and has an initial capacity of 0.

Special Considerations

This method is not supported under Automatic Reference Counting (ARC).

  • Available in OS X v10.5 and later.
  • Deprecated in OS X v10.8.
Declared In