| Paste number 60672: | sucks at c |
| Pasted by: | jtoy |
| When: | 1 year, 1 month ago |
| Share: | Tweet this! | http://paste.lisp.org/+1ATC |
| Channel: | None |
| Paste contents: |
+(NSArray*)findAll{
FMResultSet *rs = [self find];
NSMutableArray *results = [[NSArray alloc] init];
NSArray *columns = [self getColumns];
while ([rs next]) {
id object = [[self alloc] init];
for(NSDictionary *column in columns){
if([column objectForKey:@"column"] == @"integer"){
[[object row] setObject:[rs intForColumn:[column objectForKey:@"column"]] forKey:[column objectForKey:@"column"]];
}else if([column objectForKey:@"column"] == @"string"){
[[object row] setObject:[rs stringForColumn:[column objectForKey:@"column"]] forKey:[column objectForKey:@"column"]];
}
}
[results addObject:object];
}
return results;
}
This paste has no annotations.