diff options
Diffstat (limited to 'TablesList.m')
-rw-r--r-- | TablesList.m | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/TablesList.m b/TablesList.m index 5733b008..06616069 100644 --- a/TablesList.m +++ b/TablesList.m @@ -52,6 +52,7 @@ loads all table names in array tables and reload the tableView [theResult dataSeek:i]; [tables addObject:[[theResult fetchRowAsArray] objectAtIndex:0]]; } + [tablesListView reloadData]; //query finished @@ -649,15 +650,25 @@ loads structure or source if tab selected the first time forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { - if ((rowIndex > 0) && [[aTableColumn identifier] isEqualToString:@"tables"]) { - [(ImageAndTextCell*)aCell setImage:[NSImage imageNamed:@"sl-icon_table"]]; + if (rowIndex > 0 && [[aTableColumn identifier] isEqualToString:@"tables"]) { + [(ImageAndTextCell*)aCell setImage:[NSImage imageNamed:@"table-small"]]; [(ImageAndTextCell*)aCell setIndentationLevel:1]; + } else { [(ImageAndTextCell*)aCell setImage:nil]; [(ImageAndTextCell*)aCell setIndentationLevel:0]; } } +- (float)tableView:(NSTableView *)tableView heightOfRow:(int)row +{ + if (row == 0) { + return 25; + } else { + return 17; + } +} + //last but not least - (id)init { |