Protocol

NSFastEnumeration

The fast enumeration protocol NSFastEnumeration must be adopted and implemented by objects used in conjunction with the for language construct used in conjunction with Cocoa objects.

Overview

The abstract class NSEnumerator provides a convenience implementation that uses nextObject() to return items one at a time. For more details, see Fast Enumeration.

Symbols

Enumeration

func countByEnumerating(with: UnsafeMutablePointer<NSFastEnumerationState>, objects: AutoreleasingUnsafeMutablePointer<AnyObject?>!, count: Int)
Required.

Returns by reference a C array of objects over which the sender should iterate, and as the return value the number of objects in the array.

Constants

NSFastEnumerationState

This defines the structure used as contextual information in the NSFastEnumeration protocol.