Changeset 3490


Ignore:
Timestamp:
Oct 21, 2007, 2:01:54 PM (14 years ago)
Author:
livings124
Message:

make the long application support folder path a constant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3489 r3490  
    8989#define DOCK_DOWNLOADING_TAG    102
    9090
     91#define SUPPORT_FOLDER  @"/Library/Application Support/Transmission/Transfers.plist"
     92
    9193#define WEBSITE_URL @"http://transmission.m0k.org/"
    9294#define FORUM_URL   @"http://transmission.m0k.org/forum/"
     
    267269   
    268270    //load previous transfers
    269     NSArray * history = [[NSArray alloc] initWithContentsOfFile:
    270         [NSHomeDirectory() stringByAppendingPathComponent: @"/Library/Application Support/Transmission/Transfers.plist"]];
     271    NSArray * history = [[NSArray alloc] initWithContentsOfFile: [NSHomeDirectory() stringByAppendingPathComponent: SUPPORT_FOLDER]];
    271272   
    272273    //old version saved transfer info in prefs file
     
    16131614        [history addObject: [torrent history]];
    16141615
    1615     [history writeToFile: [NSHomeDirectory() stringByAppendingPathComponent:
    1616         @"/Library/Application Support/Transmission/Transfers.plist"] atomically: YES];
     1616    [history writeToFile: [NSHomeDirectory() stringByAppendingPathComponent: SUPPORT_FOLDER] atomically: YES];
    16171617}
    16181618
Note: See TracChangeset for help on using the changeset viewer.