NSArray(Query) Category Reference

#import <NSArray+DSMQuery.h>

Instance Methods

(id) - dsm_objectAfterObject:
 
(id) - dsm_objectAfterObject:satisfyingBlock:
 

Method Documentation

◆ dsm_objectAfterObject:()

- (id) dsm_objectAfterObject: (id)  object

Returns the object in the array directly following object.

Parameters
objectan object
Returns
the object in the array directly following object. If object is not present or is last in the array returns nil

◆ dsm_objectAfterObject:satisfyingBlock:()

- (id) dsm_objectAfterObject: (id)  object
satisfyingBlock: (BOOL(^)(id evaluatedObject, NSUInteger idx))  evaluationBlock 

Returns the first object subsequent to object for which the evaluationBlock returns YES.

Parameters
objectan object
evaluationBlocka block which will be passed each object until it returns true or reaches the end of the array. If this is nil the directly following object will be returned.
Returns
the object in the array subsequent to object for which evaluationBlock returns YES. If object is not present or is last in the array returns nil

The documentation for this category was generated from the following file: