Declared in NSSet+BMKitAdditions.h

Overview

BMKit related additions to the NSSet class.

Tasks

Accessing Set Members

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)predicateBlock

Parameters

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.h

makeObjectsPerformBlock:

Performs a block on each object in the set.

- (void)makeObjectsPerformBlock:(BMTargetBlock)aBlock

Parameters

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