Instance Property

allObjects

The array of unenumerated objects.

Declaration

var allObjects: [Any] { get }

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

func nextObject() -> Any?

Returns the next object from the collection being enumerated.