Add CPFastEnumeration support for CPEnumerator.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2010-02-15 22:48:28 -08:00
1 parent db949728dd
commit 8929199082
2 files changed
+12

No files matched your search

+5
View File
@@ -55,6 +55,11 @@
return [_array objectAtIndex:_index];
}
- (int)countByEnumeratingWithState:(id)aState objects:(id)objects count:(id)aCount
{
return [_array countByEnumeratingWithState:aState objects:objects count:aCount];
}
@end
/* @ignore */
+7
View File
@@ -56,4 +56,11 @@
return [];
}
- (int)countByEnumeratingWithState:(id)aState objects:(id)objects count:(id)aCount
{
// This is pretty terrible, but what do you expect.
return [[self allObjects] countByEnumeratingWithState:aState objects:objects count:aCount];
}
@end