aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-03-08 01:08:32 +0000
committerrowanbeentje <rowan@beent.je>2011-03-08 01:08:32 +0000
commit2a9b0987450a7dd60e824a9067c8aa8fd3d1ee5c (patch)
treebc4d83fe70582142fea71fd2465da88ebe725fb4 /Source/SPTableRelations.m
parentcd06fc0c9c3713f12394a02f148158b4422b4aed (diff)
downloadsequelpro-2a9b0987450a7dd60e824a9067c8aa8fd3d1ee5c.tar.gz
sequelpro-2a9b0987450a7dd60e824a9067c8aa8fd3d1ee5c.tar.bz2
sequelpro-2a9b0987450a7dd60e824a9067c8aa8fd3d1ee5c.zip
Fix more compiler warnings, including a few bugs
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index b65f62fc..e62825c3 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -184,7 +184,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]];
}
@@ -369,16 +369,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];