Changeset 1609


Ignore:
Timestamp:
Mar 30, 2007, 6:58:18 PM (15 years ago)
Author:
livings124
Message:

rename date to date added

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1579 r1609  
    254254            [fTorrentLocationField setToolTip: [torrent torrentLocation]];
    255255       
    256         [fDateStartedField setObjectValue: [torrent date]];
     256        [fDateStartedField setObjectValue: [torrent dateAdded]];
    257257       
    258258        [fRevealDataButton setHidden: NO];
  • trunk/macosx/Torrent.h

    r1579 r1609  
    3636   
    3737    BOOL         fResumeOnWake;
    38     NSDate       * fDate, * fAnnounceDate;
     38    NSDate       * fDateAdded, * fAnnounceDate;
    3939   
    4040    BOOL        fUseIncompleteFolder;
     
    189189- (NSMutableDictionary *) resetFileCheckStateForItemParent: (NSMutableDictionary *) originalChild;
    190190
    191 - (NSDate *) date;
     191- (NSDate *) dateAdded;
    192192- (NSNumber *) stateSortKey;
    193193- (NSNumber *) progressSortKey;
  • trunk/macosx/Torrent.m

    r1602 r1609  
    3535- (id) initWithHash: (NSString *) hashString path: (NSString *) path lib: (tr_handle_t *) lib
    3636        publicTorrent: (NSNumber *) publicTorrent
    37         date: (NSDate *) date
     37        dateAdded: (NSDate *) dateAdded
    3838        ratioSetting: (NSNumber *) ratioSetting ratioLimit: (NSNumber *) ratioLimit
    3939        limitSpeedCustom: (NSNumber *) limitCustom
     
    6969    self = [self initWithHash: nil path: path lib: lib
    7070            publicTorrent: delete ? [NSNumber numberWithBool: NO] : nil
    71             date: nil
     71            dateAdded: nil
    7272            ratioSetting: nil ratioLimit: nil
    7373            limitSpeedCustom: nil
     
    9292                path: [history objectForKey: @"TorrentPath"] lib: lib
    9393                publicTorrent: [history objectForKey: @"PublicCopy"]
    94                 date: [history objectForKey: @"Date"]
     94                dateAdded: [history objectForKey: @"Date"]
    9595                ratioSetting: [history objectForKey: @"RatioSetting"]
    9696                ratioLimit: [history objectForKey: @"RatioLimit"]
     
    155155                    [NSNumber numberWithBool: fUseIncompleteFolder], @"UseIncompleteFolder",
    156156                    [NSNumber numberWithBool: [self isActive]], @"Active",
    157                     [self date], @"Date",
     157                    [self dateAdded], @"Date",
    158158                    [NSNumber numberWithInt: fRatioSetting], @"RatioSetting",
    159159                    [NSNumber numberWithFloat: fRatioLimit], @"RatioLimit",
     
    190190        tr_torrentRemoveSaved(fHandle);
    191191       
    192         [fDate release];
     192        [fDateAdded release];
    193193       
    194194        if (fAnnounceDate)
     
    11811181}
    11821182
    1183 - (NSDate *) date
    1184 {
    1185     return fDate;
     1183- (NSDate *) dateAdded
     1184{
     1185    return fDateAdded;
    11861186}
    11871187
     
    12171217- (id) initWithHash: (NSString *) hashString path: (NSString *) path lib: (tr_handle_t *) lib
    12181218        publicTorrent: (NSNumber *) publicTorrent
    1219         date: (NSDate *) date
     1219        dateAdded: (NSDate *) dateAdded
    12201220        ratioSetting: (NSNumber *) ratioSetting ratioLimit: (NSNumber *) ratioLimit
    12211221        limitSpeedCustom: (NSNumber *) limitCustom
     
    12531253    fInfo = tr_torrentInfo(fHandle);
    12541254
    1255     fDate = date ? [date retain] : [[NSDate alloc] init];
     1255    fDateAdded = dateAdded ? [dateAdded retain] : [[NSDate alloc] init];
    12561256   
    12571257    fRatioSetting = ratioSetting ? [ratioSetting intValue] : NSMixedState;
Note: See TracChangeset for help on using the changeset viewer.