Contents

objectEnumerator()

Returns an enumerator object that lets you access each object in the ordered set.

Declaration

func objectEnumerator() -> NSEnumerator

Return 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