diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index a6a96896c..e22cb4a86 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -59,6 +59,20 @@ { fDefaults = [NSUserDefaults standardUserDefaults]; + if (![NSApp isOnLeopardOrBetter]) + { + //remove all unnecessary columns + int i; + for (i = [[self tableColumns] count]-1; i >= 0; i--) + { + NSTableColumn * column = [[self tableColumns] objectAtIndex: i]; + if (![[column identifier] isEqualToString: @"Group"]) + [self removeTableColumn: column]; + } + + [self sizeLastColumnToFit]; + } + fTorrentCell = [[TorrentCell alloc] init]; if (![NSApp isOnLeopardOrBetter]) [[self tableColumnWithIdentifier: @"Group"] setDataCell: fTorrentCell]; @@ -82,23 +96,6 @@ return self; } -- (void) awakeFromNib -{ - if (![NSApp isOnLeopardOrBetter]) - { - //remove all unnecessary columns - int i; - for (i = [[self tableColumns] count]-1; i >= 0; i--) - { - NSTableColumn * column = [[self tableColumns] objectAtIndex: i]; - if (![[column identifier] isEqualToString: @"Group"]) - [self removeTableColumn: column]; - } - - [self sizeLastColumnToFit]; - } -} - - (void) dealloc { [fCollapsedGroups release];