Paste number 60672: sucks at c

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:
Raw Source | XML | Display As
+(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.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.