mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
first go at getting the app to work nicely with Tiger again
This commit is contained in:
parent
ac8e76a70f
commit
a28583b50b
2 changed files with 20 additions and 3 deletions
2
NEWS
2
NEWS
|
@ -2,7 +2,7 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
|
|||
|
||||
1.10 (2008/xx/yy)
|
||||
- All Platforms:
|
||||
+ Removing transfers will remove the associated cache file
|
||||
+ Removing a transfer will remove the associated cache file
|
||||
- Mac:
|
||||
+ Window when adding torrents to select files and other settings
|
||||
+ Leopard: Group dividers
|
||||
|
|
|
@ -82,6 +82,23 @@
|
|||
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];
|
||||
|
@ -158,7 +175,7 @@
|
|||
{
|
||||
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];
|
||||
BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered;
|
||||
if ([image isTemplate] != template)
|
||||
|
@ -173,7 +190,7 @@
|
|||
|
||||
- (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];
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue