Version 1.1, 2014-02-04
Expanded the sample to cover various methods of enumeration.
(Full Revision History)
OS X 10.9 SDK or later
OS X 10.7 or later
EnumerationSample is a command line project that demonstrates how to implement a class that supports block-based enumeration, fast enumeration, enumeration using NSEnumerator, and subscripting. While provided as a OS X application, the techniques demonstrated by this sample are fully applicable to iOS development.