Declared in NSMutableArray+BMKitAdditions.h

Overview

BMKit related additions to the NSMutableArray class.

Tasks

Removing Objects

Filtering Content

  • – filterUsingPredicateBlock:

    Evaluates a given predicate block against the array’s content and leaves only objects for which the predicate block returns tru

Transforming Content

  • – transformUsingTransformator:

    Invokes the transformator on each object in the receiving array and replaces the elements with the objects returned from the transformator.

Instance Methods

filterUsingPredicateBlock:

Evaluates a given predicate block against the array’s content and leaves only objects for which the predicate block returns tru

- (void)filterUsingPredicateBlock:(BMPredicateBlock)predicateBlock

Parameters

predicateBlock

The predicate block to evaluate against the array’s elements.

Declared In

NSMutableArray+BMKitAdditions.h

removeFirstObject

Removes the object with the lowest-valued index in the array.

- (void)removeFirstObject

Discussion

removeFirstObject raises an NSRangeException if there are no objects in the array.

Declared In

NSMutableArray+BMKitAdditions.h

transformUsingTransformator:

Invokes the transformator on each object in the receiving array and replaces the elements with the objects returned from the transformator.

- (void)transformUsingTransformator:(BMTransformator)aTransformator

Parameters

aTransformator

The transformator to invoke on the receiving array’s elements.

Declared In

NSMutableArray+BMKitAdditions.h