diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-11 08:14:52 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-11 08:14:52 +0000 |
commit | 9c4e9b6f6e06f0631183b313351403b133fb4188 (patch) | |
tree | 2db57ed7ef6abeb77ba1ab02ca694943bc05e2bf /Source/SPFieldEditorController.m | |
parent | 82ad4c2dde2847b9450e6c50773a34b9d7e7bb2d (diff) | |
download | sequelpro-9c4e9b6f6e06f0631183b313351403b133fb4188.tar.gz sequelpro-9c4e9b6f6e06f0631183b313351403b133fb4188.tar.bz2 sequelpro-9c4e9b6f6e06f0631183b313351403b133fb4188.zip |
• fixed bug for exporting tables as XML: now the very last row will be written to file [ this fixes issue 404 ]
• FieldEditorSheet: if string cell content is "NULL" select the entire string for convenience
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r-- | Source/SPFieldEditorController.m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index de7e87c4..662bb008 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -182,7 +182,7 @@ } if (stringValue) { [editTextView setString:stringValue]; - + if(image == nil) { [hexTextView setHidden:YES]; [hexTextScrollView setHidden:YES]; @@ -191,11 +191,15 @@ [editTextScrollView setHidden:NO]; [editSheetSegmentControl setSelectedSegment:0]; } - + // Locate the caret in editTextView // (to select all takes a bit time for large data) [editTextView setSelectedRange:NSMakeRange(0,0)]; - + + // If the string content is NULL select NULL for convenience + if([stringValue isEqualToString:[prefs objectForKey:@"NullValue"]]) + [editTextView setSelectedRange:NSMakeRange(0,[[editTextView string] length])]; + // Set focus if(image == nil) [editSheet makeFirstResponder:editTextView]; |