From 86f08139a21a39b9d6077a34bf6a819833ca860c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 25 Aug 2010 09:53:15 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20several=20issues=20for=20in=20cell?= =?UTF-8?q?=20editing=20of=20Custom=20Query=20tables=20and=20view=20data?= =?UTF-8?q?=20in=20Content=20tables=20-=20now=20each=20cell=20can=20be=20s?= =?UTF-8?q?elected=20via=20keyboard=20navigation=20regardless=20whether=20?= =?UTF-8?q?it's=20editable=20or=20not;=20only=20if=20the=20user=20tries=20?= =?UTF-8?q?to=20modify=20it=20then=20it=20will=20be=20checked=20if=20it's?= =?UTF-8?q?=20editable=20or=20not=20-=20for=20speed=20while=20navigation?= =?UTF-8?q?=20-=20fixed=20issue=20for=20view=20data=20editing=20to=20show?= =?UTF-8?q?=20blobs=20in=20editor=20sheet=20if=20user=20wants=20to=20modif?= =?UTF-8?q?y=20it=20-=20Note:=20still=20work=20on=20progress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableContent.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/SPTableContent.m') 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"])) -- cgit v1.2.3