update NEWS, clean up pieces bar toggle code

This commit is contained in:
Mitchell Livingston
2008-01-16 19:30:12 +00:00
parent 5965d8d1ae
commit 50a90c3460
6 changed files with 14 additions and 22 deletions

View File

@@ -97,8 +97,6 @@
[cell setRevealHover: row == fMouseRevealRow];
[cell setActionHover: row == fMouseActionRow];
[cell setActionIconHover: row == fMouseActionIconRow];
[cell setPercentPiecesBar: fPiecesBarPercent];
}
- (NSString *) tableView: (NSTableView *) tableView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn row: (int) row
@@ -331,10 +329,8 @@
//sort torrents by name before finding closest match
NSSortDescriptor * nameDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"name" ascending: YES
selector: @selector(caseInsensitiveCompare:)] autorelease];
NSArray * descriptors = [[NSArray alloc] initWithObjects: nameDescriptor, nil];
NSArray * tempTorrents = [fTorrents sortedArrayUsingDescriptors: descriptors];
[descriptors release];
NSArray * tempTorrents = [fTorrents sortedArrayUsingDescriptors: [NSArray arrayWithObject: nameDescriptor]];
text = [text lowercaseString];
@@ -554,7 +550,7 @@
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
}
- (void) toggleAdvancedBar
- (void) togglePiecesBar
{
[self resizePiecesBarIncrement];
@@ -567,6 +563,11 @@
}
}
- (float) piecesBarPercent
{
return fPiecesBarPercent;
}
@end
@implementation TorrentTableView (Private)