From 4a950f357fb29640b2732ca34c80f81c0b23fbe6 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 8 Mar 2011 20:41:11 +0000 Subject: Bring outline view branch up to date with trunk (r3227:r3233). --- Source/SPTableRelations.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Source/SPTableRelations.m') diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m index b7a4bde6..fb833d94 100644 --- a/Source/SPTableRelations.m +++ b/Source/SPTableRelations.m @@ -176,7 +176,7 @@ [result dataSeek:0]; - for (NSInteger i = 0; i < [result numOfRows]; i++) + for (NSUInteger i = 0; i < [result numOfRows]; i++) { [refTablePopUpButton addItemWithTitle:[[result fetchRowAsArray] objectAtIndex:0]]; } @@ -358,16 +358,16 @@ [headings release]; // Get the relation data - for (NSDictionary *relation in relationData) + for (NSDictionary *eachRelation in relationData) { NSMutableArray *temp = [[NSMutableArray alloc] init]; - [temp addObject:[relation objectForKey:@"name"]]; - [temp addObject:[relation objectForKey:@"columns"]]; - [temp addObject:[relation objectForKey:@"fk_table"]]; - [temp addObject:[relation objectForKey:@"fk_columns"]]; - [temp addObject:([relation objectForKey:@"on_update"]) ? [relation objectForKey:@"on_update"] : @""]; - [temp addObject:([relation objectForKey:@"on_delete"]) ? [relation objectForKey:@"on_delete"] : @""]; + [temp addObject:[eachRelation objectForKey:@"name"]]; + [temp addObject:[eachRelation objectForKey:@"columns"]]; + [temp addObject:[eachRelation objectForKey:@"fk_table"]]; + [temp addObject:[eachRelation objectForKey:@"fk_columns"]]; + [temp addObject:([eachRelation objectForKey:@"on_update"]) ? [eachRelation objectForKey:@"on_update"] : @""]; + [temp addObject:([eachRelation objectForKey:@"on_delete"]) ? [eachRelation objectForKey:@"on_delete"] : @""]; [data addObject:temp]; -- cgit v1.2.3