NSSet(BMKitAdditions) Category Reference
| Declared in | NSSet+BMKitAdditions.h |
Tasks
Accessing Set Members
-
– filteredSetUsingPredicateBlock:Evaluates a given predicate block against each object in the receiving set and returns a new set containing the objects for which the predicate block returns true.
-
– makeObjectsPerformBlock:Performs a block on each object in the set.
Instance Methods
filteredSetUsingPredicateBlock:
Evaluates a given predicate block against each object in the receiving set and returns a new set containing the objects for which the predicate block returns true.
- (NSSet *)filteredSetUsingPredicateBlock:(BMPredicateBlock)predicateBlockParameters
- predicateBlock
A predicate block.
Return Value
A new set containing the objects in the receiving set for which predicateBlock returns true.
Declared In
NSSet+BMKitAdditions.hmakeObjectsPerformBlock:
Performs a block on each object in the set.
- (void)makeObjectsPerformBlock:(BMTargetBlock)aBlockParameters
- aBlock
A block to invoke with the objects in the array. The block must not have the side effect of modifying the receiving array.
Discussion
This method raises NSInvalidArgumentException if aBlock is nil.
Declared In
NSSet+BMKitAdditions.h