Instance Method


Returns a Boolean value that indicates whether the hash table contains a given object.


- (BOOL)containsObject:(ObjectType)anObject;



The object to test for membership in the hash table.

Return Value

YES if the hash table contains anObject, otherwise NO.


The equality test used depends on the personality option selected. For instance, choosing the NSPointerFunctionsObjectPersonality option will use isEqual: to determine equality. See NSPointerFunctionsOptions for more information on personality options and their corresponding equality tests.

See Also

Accessing Content


One of the objects in the hash table.


The hash table’s members.


A set that contains the hash table’s members.


The number of elements in the hash table.

- member:

Determines whether the hash table contains a given object, and returns that object if it is present

- objectEnumerator

Returns an enumerator object that lets you access each object in the hash table.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software