Changeset 12453


Ignore:
Timestamp:
May 21, 2011, 6:29:35 PM (10 years ago)
Author:
livings124
Message:

add a description method to FileListNode?

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileListNode.h

    r11617 r12453  
    4343- (void) insertIndex: (NSUInteger) index withSize: (uint64_t) size;
    4444
     45- (NSString *) description;
     46
    4547- (BOOL) isFolder;
    4648- (NSString *) name;
  • trunk/macosx/FileListNode.m

    r11617 r12453  
    8989}
    9090
     91- (NSString *) description
     92{
     93    if (!fIsFolder)
     94        return [NSString stringWithFormat: @"%@ (%d)", fName, [fIndexes firstIndex]];
     95    else
     96        return [NSString stringWithFormat: @"%@ (folder: %@)", fName, fIndexes];
     97}
     98
    9199- (BOOL) isFolder
    92100{
Note: See TracChangeset for help on using the changeset viewer.