diff options
author | stuconnolly <stuart02@gmail.com> | 2008-12-10 18:06:08 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2008-12-10 18:06:08 +0000 |
commit | 5c2e25be0f663ee982cded193cbdacc2797d5483 (patch) | |
tree | ce2bdda0fa8a86a5dfcf042cdef508ea046c6c68 /Source/TableDump.m | |
parent | 153048e2efc361befe9b614ddc4b5a2d884213e3 (diff) | |
download | sequelpro-5c2e25be0f663ee982cded193cbdacc2797d5483.tar.gz sequelpro-5c2e25be0f663ee982cded193cbdacc2797d5483.tar.bz2 sequelpro-5c2e25be0f663ee982cded193cbdacc2797d5483.zip |
Remove warning.
Diffstat (limited to 'Source/TableDump.m')
-rw-r--r-- | Source/TableDump.m | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index 277ed3e7..7460d982 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -1825,9 +1825,11 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { + id returnObject = nil; + if ( aTableView == fieldMappingTableView ) { if ([[aTableColumn identifier] isEqualToString:@"field"]) { - return [[tableSourceInstance fieldNames] objectAtIndex:rowIndex]; + returnObject = [[tableSourceInstance fieldNames] objectAtIndex:rowIndex]; } else if ([[aTableColumn identifier] isEqualToString:@"value"]) { if ([[[aTableColumn dataCell] class] isEqualTo:[NSPopUpButtonCell class]]) { @@ -1836,15 +1838,17 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn [(NSPopUpButtonCell *)[aTableColumn dataCell] addItemsWithTitles:fieldMappingButtonOptions]; } - return [fieldMappingArray objectAtIndex:rowIndex]; + returnObject = [fieldMappingArray objectAtIndex:rowIndex]; } } else { if ( [[aTableColumn identifier] isEqualToString:@"switch"] ) { - return [[tables objectAtIndex:rowIndex] objectAtIndex:0]; + returnObject = [[tables objectAtIndex:rowIndex] objectAtIndex:0]; } else { - return [[tables objectAtIndex:rowIndex] objectAtIndex:1]; + returnObject = [[tables objectAtIndex:rowIndex] objectAtIndex:1]; } } + + return returnObject; } - (void)tableView:(NSTableView *)aTableView |