Changeset 1386


Ignore:
Timestamp:
Jan 17, 2007, 5:44:03 PM (15 years ago)
Author:
livings124
Message:

use proper subclass for file table and give accurate path for files

Location:
trunk
Files:
2 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r1342 r1386  
    150150                A2A306620AAD24A80049E2AC /* UKMainThreadProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = A2A3065A0AAD24A80049E2AC /* UKMainThreadProxy.m */; };
    151151                A2AA579D0ADFCAB400CA59F6 /* PiecesImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AA579B0ADFCAB400CA59F6 /* PiecesImageView.m */; };
    152                 A2AF1C390A3D0F6200F1575D /* FileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AF1C370A3D0F6200F1575D /* FileTableView.m */; };
     152                A2AF1C390A3D0F6200F1575D /* FileOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */; };
    153153                A2BD40070A09BBEA008CCE96 /* bencode.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1838B709DEC0430047D688 /* bencode.h */; };
    154154                A2BF07910B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = A2BF078F0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m */; };
     
    366366                A2AA579A0ADFCAB400CA59F6 /* PiecesImageView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = PiecesImageView.h; path = macosx/PiecesImageView.h; sourceTree = "<group>"; };
    367367                A2AA579B0ADFCAB400CA59F6 /* PiecesImageView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = PiecesImageView.m; path = macosx/PiecesImageView.m; sourceTree = "<group>"; };
    368                 A2AF1C360A3D0F6200F1575D /* FileTableView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileTableView.h; path = macosx/FileTableView.h; sourceTree = "<group>"; };
    369                 A2AF1C370A3D0F6200F1575D /* FileTableView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileTableView.m; path = macosx/FileTableView.m; sourceTree = "<group>"; };
     368                A2AF1C360A3D0F6200F1575D /* FileOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileOutlineView.h; path = macosx/FileOutlineView.h; sourceTree = "<group>"; };
     369                A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileOutlineView.m; path = macosx/FileOutlineView.m; sourceTree = "<group>"; };
    370370                A2BF078E0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SpeedLimitToTurtleIconTransformer.h; path = macosx/SpeedLimitToTurtleIconTransformer.h; sourceTree = "<group>"; };
    371371                A2BF078F0B066E0800757C92 /* SpeedLimitToTurtleIconTransformer.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = SpeedLimitToTurtleIconTransformer.m; path = macosx/SpeedLimitToTurtleIconTransformer.m; sourceTree = "<group>"; };
     
    456456                                29B97316FDCFA39411CA2CEA /* main.m */,
    457457                                32CA4F630368D1EE00C91783 /* Transmission_Prefix.pch */,
    458                                 A2AF1C360A3D0F6200F1575D /* FileTableView.h */,
    459                                 A2AF1C370A3D0F6200F1575D /* FileTableView.m */,
     458                                A2AF1C360A3D0F6200F1575D /* FileOutlineView.h */,
     459                                A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */,
    460460                                A27431D80A68538400FA780A /* BarButton.h */,
    461461                                A27431D90A68538400FA780A /* BarButton.m */,
     
    917917                                4DCCBB3E09C3D71100D3CABF /* TorrentCell.m in Sources */,
    918918                                A200B9200A22798F007BBB1E /* InfoWindowController.m in Sources */,
    919                                 A2AF1C390A3D0F6200F1575D /* FileTableView.m in Sources */,
     919                                A2AF1C390A3D0F6200F1575D /* FileOutlineView.m in Sources */,
    920920                                A27ABC240A6ADE410020EC71 /* ImageBackgroundView.m in Sources */,
    921921                                A2710E770A86796000CE4F7D /* PrefsWindow.m in Sources */,
  • trunk/macosx/English.lproj/InfoWindow.nib/classes.nib

    r1379 r1386  
    22    IBClasses = (
    33        {CLASS = DisableTextField; LANGUAGE = ObjC; SUPERCLASS = NSTextField; },
    4         {
    5             CLASS = FileTableView;
    6             LANGUAGE = ObjC;
    7             OUTLETS = {fContextMenu = NSMenu; };
    8             SUPERCLASS = NSTableView;
    9         },
     4        {CLASS = FileOutlineView; LANGUAGE = ObjC; SUPERCLASS = NSOutlineView; },
    105        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
    116        {
  • trunk/macosx/Torrent.m

    r1384 r1386  
    10711071    tr_file_t * file;
    10721072    NSMutableArray * files = [NSMutableArray array], * pathComponents;
     1073    NSString * path;
    10731074   
    10741075    for (i = 0; i < count; i++)
     
    10781079        pathComponents = [[[NSString stringWithUTF8String: file->name] pathComponents] mutableCopy];
    10791080        if (fInfo->multifile)
     1081        {
     1082            path = [pathComponents objectAtIndex: 0];
    10801083            [pathComponents removeObjectAtIndex: 0];
    1081        
    1082         [self insertPath: pathComponents withParent: files previousPath: @"" fileSize: file->length];
     1084        }
     1085        else
     1086            path = @"";
     1087       
     1088        [self insertPath: pathComponents withParent: files previousPath: path fileSize: file->length];
    10831089        [pathComponents autorelease];
    10841090    }
Note: See TracChangeset for help on using the changeset viewer.