Protocol: NSFastEnumeration
Overview
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.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)This defines the structure used as contextual information in the NSFastEnumeration protocol.
Instance Method Summary (collapse)
-
- 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.
Instance Method Details
- (Integer) countByEnumeratingWithState(state, objects:stackbuf, count:len)
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) The state structure is assumed to be of stack local memory, so you can recast the passed in state structure to one more suitable for your iteration.