diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPDataCellFormatter.h | 9 | ||||
-rw-r--r-- | Source/SPDataCellFormatter.m | 14 | ||||
-rw-r--r-- | Source/TableContent.m | 9 |
3 files changed, 20 insertions, 12 deletions
diff --git a/Source/SPDataCellFormatter.h b/Source/SPDataCellFormatter.h index 8784898a..8c62d83a 100644 --- a/Source/SPDataCellFormatter.h +++ b/Source/SPDataCellFormatter.h @@ -25,9 +25,14 @@ @interface SPDataCellFormatter : NSFormatter { - NSUInteger textLimit; + int textLimit; } -@property NSUInteger textLimit; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 + @property int textLimit; +#else + -(int)textLimit; + -(void)setTextLimit:(int)limit; +#endif @end diff --git a/Source/SPDataCellFormatter.m b/Source/SPDataCellFormatter.m index 051a7ac6..4f005c23 100644 --- a/Source/SPDataCellFormatter.m +++ b/Source/SPDataCellFormatter.m @@ -26,7 +26,19 @@ @implementation SPDataCellFormatter -@synthesize textLimit; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 + @synthesize textLimit; +#else + -(int)textLimit + { + return textLimit; + } + + -(void)setTextLimit:(int)limit + { + textLimit = limit; + } +#endif - (NSString *)stringForObjectValue:(id)anObject { diff --git a/Source/TableContent.m b/Source/TableContent.m index fba8a3ed..3baf5713 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1866,15 +1866,6 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn #pragma mark - -- (void)controlTextDidChange:(NSNotification *)aNotification -{ - NSString *fieldType; - int row, column, i; - - row = [tableContentView editedRow]; - column = [tableContentView editedColumn]; -} - /* * Trap the enter and escape keys, overriding default behaviour and continuing/ending editing, * only within the current row. |