1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00
transmission/macosx/StringAdditions.h
Eric Petit 3ba5313752 Show ratio instead of the download rate once the download is complete.
Fixed windowWillUseStandardFrame.
 Cleaning
2006-02-07 05:02:45 +00:00

19 lines
493 B
Objective-C

//
// StringAdditions.h
// Transmission
//
// Created by Mitchell Livingston on 1/16/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSString (StringAdditions)
+ (NSString *) stringForFileSize: (uint64_t) size;
+ (NSString *) stringForSpeed: (float) speed;
+ (NSString *) stringForRatio: (uint64_t) down upload: (uint64_t) up;
- (NSString *) stringFittingInWidth: (float) width
withAttributes: (NSDictionary *) attributes;
@end