aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 13d58e3a..fe9e37ec 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -171,6 +171,8 @@
[paginationView setFrame:paginationViewFrame];
[contentViewPane addSubview:paginationView];
+ [tableContentView setFieldEditorSelectedRange:NSMakeRange(0,0)];
+
// Init Filter Table GUI
[filterTableDistinctMenuItem setState:(filterTableDistinct) ? NSOnState : NSOffState];
[filterTableNegateCheckbox setState:(filterTableNegate) ? NSOnState : NSOffState];
@@ -4210,6 +4212,8 @@
if ((fieldType = [[tableDataInstance columnWithName:[[NSArrayObjectAtIndex([tableContentView tableColumns], column) headerCell] stringValue]] objectForKey:@"typegrouping"])
&& ([fieldType isEqualToString:@"textdata"] || [fieldType isEqualToString:@"blobdata"] || [multipleLineEditingButton state] == NSOnState))
{
+ [tableContentView setFieldEditorSelectedRange:[fieldEditor selectedRange]];
+
// Cancel editing
[control abortEditing];
@@ -4475,6 +4479,16 @@
}
}
+- (void)setFieldEditorSelectedRange:(NSRange)aRange
+{
+ [tableContentView setFieldEditorSelectedRange:aRange];
+}
+
+- (NSRange)fieldEditorSelectedRange
+{
+ return [tableContentView fieldEditorSelectedRange];
+}
+
#pragma mark -
/**