mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
add a description method to FileListNode
This commit is contained in:
@@ -88,6 +88,14 @@
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSString *) description
|
||||
{
|
||||
if (!fIsFolder)
|
||||
return [NSString stringWithFormat: @"%@ (%d)", fName, [fIndexes firstIndex]];
|
||||
else
|
||||
return [NSString stringWithFormat: @"%@ (folder: %@)", fName, fIndexes];
|
||||
}
|
||||
|
||||
- (BOOL) isFolder
|
||||
{
|
||||
return fIsFolder;
|
||||
|
||||
Reference in New Issue
Block a user