Created
May 10, 2013 23:07
-
-
Save bentford/5558108 to your computer and use it in GitHub Desktop.
The easiest way to implement NSFastEnumeration is to build your custom collection on top of NSFoundation collections.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - NSFastEnumeration | |
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state | |
objects:(__unsafe_unretained id [])buffer count:(NSUInteger)len | |
{ | |
return [dictionary.allValues countByEnumeratingWithState:state objects:stackbuf count:len]; | |
} | |
#pragma mark - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment