Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 428 Bytes
#import <Cocoa/Cocoa.h>
@interface NSString (Truncate)
enum {
NSTruncateStart = 1,
NSTruncateMiddle = 2,
NSTruncateEnd = 3
};
- (NSString *)stringWithTruncatingToLength:(unsigned)length;
- (NSString *)stringTruncatedToLength:(unsigned int)length direction:(unsigned)truncateFrom;
- (NSString *)stringTruncatedToLength:(unsigned int)length direction:(unsigned)truncateFrom withEllipsisString:(NSString *)ellipsis;
@end