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