change the (temporary) name at the cell level, not the torrent level

This commit is contained in:
Mitchell Livingston 2011-08-05 03:11:22 +00:00
parent 0f46306f77
commit 9386563e5e
3 changed files with 10 additions and 3 deletions

View File

@ -127,6 +127,7 @@
- (NSImage *) icon;
- (NSString *) name;
- (NSInteger) queuePosition;
- (BOOL) isFolder;
- (uint64_t) size;
- (uint64_t) sizeLeft;

View File

@ -614,8 +614,13 @@ int trashDataFile(const char * filename)
- (NSString *) name
{
return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString];
//return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
}
#warning remove
- (NSInteger) queuePosition
{
return fStat->queuePosition;
}
- (BOOL) isFolder

View File

@ -806,7 +806,8 @@
- (NSAttributedString *) attributedTitle
{
NSString * title = [[self representedObject] name];
NSString * title = [NSString stringWithFormat: @"%d %@", [[self representedObject] queuePosition], [[self representedObject] name]];
//NSString * title = [[self representedObject] name];
return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease];
}