objectEnumerator()
Returns an enumerator object that lets you access each object in the hash table.
Declaration
func objectEnumerator() -> NSEnumeratorReturn Value
An enumerator object that lets you access each object in the hash table.
Discussion
The following code fragment illustrates how you can use this method.
NSEnumerator *enumerator = [myHashTable objectEnumerator];
id value;
while ((value = [enumerator nextObject])) {
/* code that acts on the hash table's values */
}Special Considerations
It is more efficient to use the fast enumeration protocol (see NSFastEnumeration).