diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-08-25 09:53:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-08-25 09:53:15 +0000 |
commit | 86f08139a21a39b9d6077a34bf6a819833ca860c (patch) | |
tree | 279e20cd7c13da0312af519835bae4bfbe1c0201 /Source/SPTableContent.m | |
parent | d90aac6dfab328485bad6ec450388d90684a0ee6 (diff) | |
download | sequelpro-86f08139a21a39b9d6077a34bf6a819833ca860c.tar.gz sequelpro-86f08139a21a39b9d6077a34bf6a819833ca860c.tar.bz2 sequelpro-86f08139a21a39b9d6077a34bf6a819833ca860c.zip |
• fixed several issues for in cell editing of Custom Query tables and view data in Content tables
- now each cell can be selected via keyboard navigation regardless whether it's editable or not; only if the user tries to modify it then it will be checked if it's editable or not - for speed while navigation
- fixed issue for view data editing to show blobs in editor sheet if user wants to modify it
- Note: still work on progress
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r-- | Source/SPTableContent.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 2a48d471..777eaf7f 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -3722,7 +3722,6 @@ #pragma mark - #pragma mark Other methods - /* * If user selected a table cell which is a blob field and tried to edit it * cancel the fieldEditor, display the field editor sheet instead for editing @@ -3731,12 +3730,16 @@ - (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor { - NSString *fieldType; NSUInteger row, column; row = [tableContentView editedRow]; column = [tableContentView editedColumn]; + if([tableContentView isCellEditingMode] && [self fieldEditStatusForRow:row andColumn:[NSArrayObjectAtIndex([tableContentView tableColumns], column) identifier]] != 1) + return NO; + + NSString *fieldType; + // Check if current edited field is a blob if ((fieldType = [[tableDataInstance columnWithName:[[NSArrayObjectAtIndex([tableContentView tableColumns], column) headerCell] stringValue]] objectForKey:@"typegrouping"]) && ([fieldType isEqualToString:@"textdata"] || [fieldType isEqualToString:@"blobdata"])) |