objectEnumerator()
Returns an enumerator object that lets you access each object in the ordered set.
Declaration
func objectEnumerator() -> NSEnumeratorReturn Value
An enumerator object that lets you access each object in the ordered set, in order, from the element at the lowest index upwards.
Discussion
When you use this method with mutable subclasses of NSOrderedSet, you must not modify the ordered set during enumeration.
It is more efficient to use the fast enumeration protocol (see NSFastEnumeration). Fast enumeration is available in macOS 10.5 and later and iOS 2.0 and later.
See Also
Accessing Set Members
contains(_:)enumerateObjects(at:options:using:)enumerateObjects(_:)enumerateObjects(options:using:)firstObjectlastObjectobject(at:)subscript(_:)objects(at:)index(of:)index(of:inSortedRange:options:usingComparator:)index(ofObjectAt:options:passingTest:)index(ofObjectPassingTest:)index(_:ofObjectPassingTest:)indexes(ofObjectsAt:options:passingTest:)