Protocol

NSFastEnumeration

A protocol that objects adopt to support fast enumeration.

Declaration

@protocol NSFastEnumeration

Overview

The abstract class NSEnumerator provides a convenience implementation that uses nextObject to return items one at a time.

Topics

Enumeration

- countByEnumeratingWithState:objects:count:

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.

Required.

Constants

NSFastEnumerationState

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

See Also

Iteration

NSEnumerator

An abstract class whose subclasses enumerate collections of objects, such as arrays and dictionaries.

NSEnumerationOptions

Options for block enumeration operations.

NSSortOptions

Options for block sorting operations.