466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
|
#ifdef OF_HAVE_BLOCKS
- (void)enumerateKeysAndObjectsUsingBlock:
(of_dictionary_enumeration_block_t)block
{
bool stop = false;
for (id key in self) {
block(key, [self objectForKey: key], &stop);
if (stop)
break;
}
}
- (OFDictionary *)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block
|
|
|
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
|
#ifdef OF_HAVE_BLOCKS
- (void)enumerateKeysAndObjectsUsingBlock:
(of_dictionary_enumeration_block_t)block
{
bool stop = false;
for (id key in self) {
block(key, (id)[self objectForKey: key], &stop);
if (stop)
break;
}
}
- (OFDictionary *)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block
|