Frameworks/OJMoq/CPArray+Find.j
Go to the documentation of this file.

    00001 @implementation CPArray (Find)
    00002
    00003 - (CPArray)findBy:(Function)isTheObject
    00004 {
    00005     var foundObjects = [];
    00006     for(var i = 0; i < [self count]; i++)
    00007     {
    00008         if(isTheObject([self objectAtIndex:i]))
    00009         {
    00010             [foundObjects addObject:[self objectAtIndex:i]];
    00011         }
    00012     }
    00013
    00014     return foundObjects;
    00015 }
    00016
    00017 @end

All Classes Files Functions Variables