source: trunk/macosx/StringAdditions.h @ 103

Last change on this file since 103 was 103, checked in by titer, 16 years ago

Updated badging

File size: 545 bytes
Line 
1//
2//  StringAdditions.h
3//  Transmission
4//
5//  Created by Mitchell Livingston on 1/16/06.
6//  Copyright 2006 __MyCompanyName__. All rights reserved.
7//
8
9#import <Cocoa/Cocoa.h>
10
11@interface NSString (StringAdditions)
12
13+ (NSString *) stringForFileSize: (uint64_t) size;
14+ (NSString *) stringForSpeed: (float) speed;
15+ (NSString *) stringForSpeedAbbrev: (float) speed;
16+ (NSString *) stringForRatio: (uint64_t) down upload: (uint64_t) up;
17- (NSString *) stringFittingInWidth: (float) width
18                                        withAttributes: (NSDictionary *) attributes;
19
20@end
Note: See TracBrowser for help on using the repository browser.