# NSEnumerator class reference

mccallum@gnu.ai.mit.edu
Generated at 2025-02-13 06:02:40 +0000
1995, 1996 Free Software Foundation, Inc.
Software documentation for the NSEnumerator class
Foundation/NSEnumerator.h
NSFastEnumeration
Simple class for iterating over a collection of objects, usually returned from an NSArray or similar.
allObjects
Returns all objects remaining in the enumeration as an array.
Calling this method 'exhausts' the enumerator, leaving it at the end of the collection being enumerated.
nextObject
Returns next object in enumeration, or `nil` if none remain. Use code like `while (object = [enumerator nextObject]) {...}` .
Software documentation for the NSFastEnumeration protocol
Foundation/NSEnumerator.h
Description forthcoming.
countByEnumeratingWithState:
state
objects:
stackbuf
count:
len
Description forthcoming.