diff options
Diffstat (limited to 'Source/SPDataCellFormatter.m')
-rw-r--r-- | Source/SPDataCellFormatter.m | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/SPDataCellFormatter.m b/Source/SPDataCellFormatter.m index 951fafbc..616e59db 100644 --- a/Source/SPDataCellFormatter.m +++ b/Source/SPDataCellFormatter.m @@ -36,24 +36,10 @@ @implementation SPDataCellFormatter @synthesize textLimit; -@synthesize displayLimit; @synthesize fieldType; -- (id)init -{ - if ((self = [super init])) { - displayLimit = NSNotFound; - } - return self; -} - - (NSString *)stringForObjectValue:(id)anObject { - // Truncate the string for speed purposes if it's very long - improves table scrolling speed. - if (displayLimit != NSNotFound && [anObject isKindOfClass:[NSString class]] && [(NSString *)anObject length] > displayLimit) { - return ([NSString stringWithFormat:@"%@...", [anObject substringToIndex:displayLimit - 3]]); - } - if (![anObject isKindOfClass:[NSString class]]) { return [anObject description]; } |