# NSHashTable class reference

rfm@gnu.org
Generated at 2025-12-02 21:52:00 +0000
2009 Free Software Foundation, Inc.
Software documentation for the NSHashTable class
Foundation/NSHashTable.h
NSCopying
NSCoding
NSFastEnumeration
Description forthcoming.
hashTableWithOptions:
options
Description forthcoming.
weakObjectsHashTable
Creates a hash table that uses weak references (using the automatic reference counting mechanism) so that objects are removed when their last other reference disappears.
addObject:
object
Adds the object to the receiver.
Adding a `nil` object has no effect.
allObjects
Returns an array containing all objects in the receiver.
anyObject
Returns any objct from the receiver, or `nil` if the receiver contains no objects.
containsObject:
anObject
Returns `YES` if the receiver contains an item equal to anObject, or `NO` otherwise.
count
Return the number of items atored in the receiver.
initWithOptions:
options
capacity:
initialCapacity
Description forthcoming.
initWithPointerFunctions:
functions
capacity:
initialCapacity
Description forthcoming.
intersectHashTable:
other
Removes from the receiver any items which are not also present in 'other'.
intersectsHashTable:
other
Returns `YES` if the receiver and 'other' contain any items in common.
isEqualToHashTable:
other
Returns `YES` if the receiver and 'other' contain equal sets of items.
isSubsetOfHashTable:
other
Returns `YES` fi all the items in the receiver are also present in 'other'
member:
object
Returns an item stored in the receiver which is equal to the supplied object argument, or `nil` if no matchi is found.
minusHashTable:
other
Removes from the receivr all those items which are prsent in both the receiver and in 'other'.
objectEnumerator
Return an enumerator for the receiver.
pointerFunctions
Return an NSPointerFunctions value describing the functions used by the receiver to handle its contents.
removeAllObjects
Removes all objects.
removeObject:
object
Remove the object (or any equal object) from the receiver.
setRepresentation
Returns a set containing all the objects in the receiver.
unionHashTable:
other
Adds to the receiver thse items present in 'other' which were not present in the receiver.