mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-02 21:29:45 +00:00
Add CPFastEnumeration support for CPEnumerator.
Reviewed by me.
This commit is contained in:
1 parent
db949728dd
commit
8929199082
2 files changed
+12
No files matched your search
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user