210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
objc_autoreleasePoolPop(pool);
return [element autorelease];
}
#ifdef OF_HAVE_BLOCKS
- (void)enumerateObjectsAndCountUsingBlock:
(of_counted_set_enumeration_block_t)block
{
[self enumerateObjectsUsingBlock: ^ (id object, bool *stop) {
block(object, [self countForObject: object], stop);
}];
}
#endif
|
|
<
|
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
objc_autoreleasePoolPop(pool);
return [element autorelease];
}
#ifdef OF_HAVE_BLOCKS
- (void)enumerateObjectsAndCountUsingBlock: (OFCountedSetEnumerationBlock)block
{
[self enumerateObjectsUsingBlock: ^ (id object, bool *stop) {
block(object, [self countForObject: object], stop);
}];
}
#endif
|