1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

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

This commit is contained in:
Mitchell Livingston 2008-02-19 05:14:22 +00:00
parent ac8e76a70f
commit a28583b50b
2 changed files with 20 additions and 3 deletions

2
NEWS
View file

@ -2,7 +2,7 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
1.10 (2008/xx/yy) 1.10 (2008/xx/yy)
- All Platforms: - All Platforms:
+ Removing transfers will remove the associated cache file + Removing a transfer will remove the associated cache file
- Mac: - Mac:
+ Window when adding torrents to select files and other settings + Window when adding torrents to select files and other settings
+ Leopard: Group dividers + Leopard: Group dividers

View file

@ -82,6 +82,23 @@
return self; 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 - (void) dealloc
{ {
[fCollapsedGroups release]; [fCollapsedGroups release];
@ -158,7 +175,7 @@
{ {
if ([[tableColumn identifier] isEqualToString: @"UL Image"] || [[tableColumn identifier] isEqualToString: @"DL Image"]) if ([[tableColumn identifier] isEqualToString: @"UL Image"] || [[tableColumn identifier] isEqualToString: @"DL Image"])
{ {
//ensure white only when selected //ensure arrows are white only when selected
NSImage * image = [cell image]; NSImage * image = [cell image];
BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered; BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered;
if ([image isTemplate] != template) if ([image isTemplate] != template)
@ -173,7 +190,7 @@
- (NSRect) frameOfCellAtColumn: (NSInteger) column row: (NSInteger) row - (NSRect) frameOfCellAtColumn: (NSInteger) column row: (NSInteger) row
{ {
if (column == -1 || (![NSApp isOnLeopardOrBetter] && [[self itemAtRow: row] isKindOfClass: [Torrent class]])) if (column == -1 || ![NSApp isOnLeopardOrBetter])
return [self rectOfRow: row]; return [self rectOfRow: row];
else else
{ {