iterateObjects
Iterates the dictionary calling a callback block for each member.
Declaration
virtual bool iterateObjects(OSCollectionIterateObjectsBlock block) const;Parameters
- block:
The block to invoke.
Return Value
False if the callback block returned false, otherwise true (including if the array is empty).
Discussion
Calls the block with each member of the dictionary. The block must not dictionary the array during iteration. If the block returns true the iteration continues for all members, returning false halts the iteration early. OSDictionary also has a dictionary specific iterateObjects() which supplies the key and value to the callback.