get file tab working again

This commit is contained in:
Mitchell Livingston
2007-08-15 03:43:54 +00:00
parent 87496d2b48
commit d836254dc7
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -99,7 +99,7 @@
[titleString drawInRect: titleRect];
//status
if ([[[self objectValue] objectForKey: @"IsFolder"] boolValue])
if (![[[self objectValue] objectForKey: @"IsFolder"] boolValue])
{
NSAttributedString * statusString = [self attributedStatusWithColor: highlighted ? [NSColor whiteColor]
: [NSColor darkGrayColor]];
+2 -2
View File
@@ -37,14 +37,14 @@
else
priority = TR_PRI_NORMAL;
[torrent setFilePriority: priority forIndexes: [[self objectValue] objectForKey: @"Indexes"]];
[torrent setFilePriority: priority forIndexes: [[self representedObject] objectForKey: @"Indexes"]];
[(FileOutlineView *)[self controlView] reloadData];
}
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
{
Torrent * torrent = [(InfoWindowController *)[[[self controlView] window] windowController] selectedTorrent];
NSDictionary * dict = [self objectValue];
NSDictionary * dict = [self representedObject];
NSSet * priorities = [torrent filePrioritiesForIndexes: [dict objectForKey: @"Indexes"]];
int count = [priorities count];
+3
View File
@@ -879,6 +879,9 @@
NSString * identifier = [tableColumn identifier];
if ([identifier isEqualToString: @"Check"])
[cell setEnabled: [[fTorrents objectAtIndex: 0] canChangeDownloadCheckForFiles: [item objectForKey: @"Indexes"]]];
else if ([identifier isEqualToString: @"Priority"])
[cell setRepresentedObject: item];
else;
}
- (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object