Instance Method

member:

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

Declaration

- (ObjectType)member:(ObjectType)object;

Parameters

object

The object to test for membership in the hash table.

Return Value

If object is a member of the hash table, returns object, otherwise returns nil.

Discussion

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

anyObject

One of the objects in the hash table.

allObjects

The hash table’s members.

setRepresentation

A set that contains the hash table’s members.

count

The number of elements in the hash table.

- containsObject:

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

- objectEnumerator

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