Changeset 5271


Ignore:
Timestamp:
Mar 17, 2008, 8:18:23 PM (14 years ago)
Author:
livings124
Message:

update NEWS; trivial changes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r5246 r5271  
    1111   + Message log specifies the torrent/activity the message relates to
    1212   + Updated images in the inspector
    13    + Optional display of remaining time while seeding in Minimal View
     13   + Optional display of remaining time while seeding in Minimal View
     14   + Improved accuracy for displaying the remaining disk space warning
    1415
    15161.06 (2008/02/26)
  • trunk/macosx/Torrent.m

    r5270 r5271  
    536536        return YES;
    537537   
     538    NSFileManager * fileManager = [NSFileManager defaultManager];
     539   
    538540    NSString * volumeName;
    539     if ((volumeName = [[[NSFileManager defaultManager] componentsToDisplayForPath: [self downloadFolder]] objectAtIndex: 0]))
    540     {
    541         NSDictionary * systemAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
     541    if ((volumeName = [[fileManager componentsToDisplayForPath: [self downloadFolder]] objectAtIndex: 0]))
     542    {
     543        NSDictionary * systemAttributes = [fileManager fileSystemAttributesAtPath: [self downloadFolder]];
    542544        uint64_t remainingSpace = [[systemAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue], neededSpace = 0;
    543545       
     
    553555               
    554556                NSString * path = [[self downloadFolder] stringByAppendingPathComponent: [NSString stringWithUTF8String: file->name]];
    555                 if ([[NSFileManager defaultManager] fileExistsAtPath: path])
     557                if ([fileManager fileExistsAtPath: path])
    556558                {
    557                     NSDictionary * fileAttributes = [NSApp isOnLeopardOrBetter]
    558                         ? [[NSFileManager defaultManager] attributesOfItemAtPath: path error: NULL]
    559                         : [[NSFileManager defaultManager] fileAttributesAtPath: path traverseLink: NO];
     559                    NSDictionary * fileAttributes = [NSApp isOnLeopardOrBetter] ? [fileManager attributesOfItemAtPath: path error: NULL]
     560                                                    : [fileManager fileAttributesAtPath: path traverseLink: NO];
    560561                    if (!fileAttributes)
    561562                    {
    562                         NSLog(@"Problems getting attributes for \"%@\".", path);
     563                        NSLog(@"Problems getting file information for \"%@\".", path);
    563564                        continue;
    564565                    }
Note: See TracChangeset for help on using the changeset viewer.