aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index c71099b8..19d9a6b6 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2884,9 +2884,15 @@
- (void)processFieldEditorResult:(id)data contextInfo:(NSDictionary*)contextInfo
{
+ NSInteger row = -1;
+ NSInteger column = -1;
+
+ if(contextInfo) {
+ row = [[contextInfo objectForKey:@"row"] integerValue];
+ column = [[contextInfo objectForKey:@"column"] integerValue];
+ }
+
if (data && contextInfo) {
- NSUInteger row = [[contextInfo objectForKey:@"row"] integerValue];
- NSUInteger column = [[contextInfo objectForKey:@"column"] integerValue];
BOOL isFieldEditable = ([contextInfo objectForKey:@"isFieldEditable"]) ? YES : NO;
if (!isEditingRow && [tablesListInstance tableType] != SPTableTypeView) {
[oldRow setArray:[tableValues rowContentsAtIndex:row]];
@@ -2918,6 +2924,9 @@
}
[[tableDocumentInstance parentWindow] makeFirstResponder:tableContentView];
+
+ if(row > -1 && column > -1)
+ [tableContentView editColumn:column row:row withEvent:nil select:YES];
}
#pragma mark -