Instance Method

enumerateKeysAndObjectsUsingBlock:

Applies a given block object to the entries of the dictionary.

Declaration

- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(KeyType key, ObjectType obj, BOOL *stop))block;

Parameters

block

A block object to operate on entries in the dictionary.

Discussion

If the block sets *stop to YES, the enumeration stops.

See Also

Enumerating Dictionaries

- keyEnumerator

Provides an enumerator to access the keys in the dictionary.

- objectEnumerator

Returns an enumerator object that lets you access each value in the dictionary.

- enumerateKeysAndObjectsWithOptions:usingBlock:

Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed.

- countByEnumeratingWithState:objects:count:

Returns by reference a C array of objects over which the sender should iterate.