diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-19 19:16:59 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-19 19:16:59 +0000 |
commit | ba37b377d84cc24052538aad70257fc082c92dca (patch) | |
tree | e58220a1380b491cbf217f40a15d1d0b94dd76e2 /Source/TableContent.m | |
parent | 2583d511db232ca276c1718fbef871880c00625b (diff) | |
download | sequelpro-ba37b377d84cc24052538aad70257fc082c92dca.tar.gz sequelpro-ba37b377d84cc24052538aad70257fc082c92dca.tar.bz2 sequelpro-ba37b377d84cc24052538aad70257fc082c92dca.zip |
• removed initial transition of insertion NSNull into table's dataSource from last commit r1824 since that part should be moved maybe into SPTableTextFieldCell
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index 4d878527..a0e2d610 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -2746,12 +2746,17 @@ } NSDictionary *column = NSArrayObjectAtIndex(dataColumns, [[aTableColumn identifier] integerValue]); + + if (anObject) { + + // Restore NULLs if necessary + if ([anObject isEqualToString:[prefs objectForKey:SPNullValue]] && [[column objectForKey:@"null"] boolValue]) + anObject = [NSNull null]; - if (anObject) [tableValues replaceObjectInRow:rowIndex column:[[aTableColumn identifier] integerValue] withObject:anObject]; - else + } else { [tableValues replaceObjectInRow:rowIndex column:[[aTableColumn identifier] integerValue] withObject:@""]; - + } } #pragma mark - |