Instance Property

allObjects

The array of unenumerated objects.

Declaration

@property(readonly, copy) NSArray<ObjectType> *allObjects;

Discussion

This array contains all the remaining objects of the enumerator in enumerated order. It does not contain objects that have already been enumerated with previous nextObject messages.

Accessing this property exhausts the enumerator’s collection so that subsequent invocations of nextObject return nil.

See Also

Getting the Enumerated Objects

- nextObject

Returns the next object from the collection being enumerated.