add a description method to FileListNode

This commit is contained in:
Mitchell Livingston
2011-05-21 18:29:35 +00:00
parent 807cc6fa16
commit 3325fbb602
2 changed files with 10 additions and 0 deletions

View File

@@ -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;