objective c - Applying the same test to all members of a collection -
in test have nsarray
several objects. must pass same test.
is there better or more elegant way express doing for-in , applying same macro each element?
that's judgement call, consider -indexesofobjectswithoptions:passingtest: , maybe -enumerateobjectsusingblock: alternatives.
Comments
Post a Comment