diff --git a/macosx/FileListNode.h b/macosx/FileListNode.h index 6d33e11b3..8964efd14 100644 --- a/macosx/FileListNode.h +++ b/macosx/FileListNode.h @@ -42,6 +42,8 @@ - (void) insertChild: (FileListNode *) child; - (void) insertIndex: (NSUInteger) index withSize: (uint64_t) size; +- (NSString *) description; + - (BOOL) isFolder; - (NSString *) name; - (NSString *) path; diff --git a/macosx/FileListNode.m b/macosx/FileListNode.m index 7c12303e2..ad0dc81c7 100644 --- a/macosx/FileListNode.m +++ b/macosx/FileListNode.m @@ -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;