NSDictionary * fileAttributes = onLeopard ? [fileManager attributesOfItemAtPath: path error: NULL]
: [fileManager fileAttributesAtPath: path traverseLink: NO];
if (fileAttributes)
- neededSpace -= [[fileAttributes objectForKey: NSFileSize] unsignedLongLongValue];
+ {
+ unsigned long long fileSize = [[fileAttributes objectForKey: NSFileSize] unsignedLongLongValue];
+ if (fileSize < neededSpace)
+ neededSpace -= fileSize;
+ else
+ neededSpace = 0;
+ }
}
}
[fErrorImage drawInRect: errorRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
}
+ #warning alter
//text color
NSColor * titleColor, * statusColor;
if ([NSApp isOnLeopardOrBetter] ? [self backgroundStyle] == NSBackgroundStyleDark : [self isHighlighted]