summaryrefslogtreecommitdiff
path: root/cocoa/PSMTabBarControl/NSString_AITruncation.m
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-05-05 22:28:51 +0100
committerVincent Sanders <vince@kyllikki.org>2016-05-15 13:44:34 +0100
commitd21447d096a320a08b3efb2b8768fad0dcdcfd64 (patch)
tree1a83814b7c9e94b2f13c473261f23dd3a17dee64 /cocoa/PSMTabBarControl/NSString_AITruncation.m
parent2cbb337756d9af5bda4d594964d446439f602551 (diff)
downloadnetsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.gz
netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.bz2
move frontends into sub directory
Diffstat (limited to 'cocoa/PSMTabBarControl/NSString_AITruncation.m')
-rw-r--r--cocoa/PSMTabBarControl/NSString_AITruncation.m32
1 files changed, 0 insertions, 32 deletions
diff --git a/cocoa/PSMTabBarControl/NSString_AITruncation.m b/cocoa/PSMTabBarControl/NSString_AITruncation.m
deleted file mode 100644
index 1a54502e5..000000000
--- a/cocoa/PSMTabBarControl/NSString_AITruncation.m
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// NSString_AITruncation.m
-// PSMTabBarControl
-//
-// Created by Evan Schoenberg on 7/14/07.
-// From Adium, which is licensed under the GPL. Used in PSMTabBarControl with permission.
-// The contents of this remain licensed under the GPL.
-//
-
-#import "NSString_AITruncation.h"
-
-@implementation NSString (AITruncation)
-
-+ (id)ellipsis {
- return [NSString stringWithUTF8String:"\xE2\x80\xA6"];
-}
-
-- (NSString *)stringWithEllipsisByTruncatingToLength:(NSUInteger)length {
- NSString *returnString;
-
- if(length < [self length]) {
- //Truncate and append the ellipsis
- returnString = [[self substringToIndex:length - 1] stringByAppendingString:[NSString ellipsis]];
- } else {
- //We don't need to truncate, so don't append an ellipsis
- returnString = [[self copy] autorelease];
- }
-
- return returnString;
-}
-
-@end