Ignore:
Timestamp:
Feb 19, 2008, 5:14:22 AM (14 years ago)
Author:
livings124
Message:

first go at getting the app to work nicely with Tiger again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r5063 r5069  
    8383}
    8484
     85- (void) awakeFromNib
     86{
     87    if (![NSApp isOnLeopardOrBetter])
     88    {
     89        //remove all unnecessary columns
     90        int i;
     91        for (i = [[self tableColumns] count]-1; i >= 0; i--)
     92        {
     93            NSTableColumn * column = [[self tableColumns] objectAtIndex: i];
     94            if (![[column identifier] isEqualToString: @"Group"])
     95                [self removeTableColumn: column];
     96        }
     97       
     98        [self sizeLastColumnToFit];
     99    }
     100}
     101
    85102- (void) dealloc
    86103{
     
    159176        if ([[tableColumn identifier] isEqualToString: @"UL Image"] || [[tableColumn identifier] isEqualToString: @"DL Image"])
    160177        {
    161             //ensure white only when selected
     178            //ensure arrows are white only when selected
    162179            NSImage * image = [cell image];
    163180            BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered;
     
    174191- (NSRect) frameOfCellAtColumn: (NSInteger) column row: (NSInteger) row
    175192{
    176     if (column == -1 || (![NSApp isOnLeopardOrBetter] && [[self itemAtRow: row] isKindOfClass: [Torrent class]]))
     193    if (column == -1 || ![NSApp isOnLeopardOrBetter])
    177194        return [self rectOfRow: row];
    178195    else
Note: See TracChangeset for help on using the changeset viewer.