diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPFieldEditorController.m | 10 | ||||
-rw-r--r-- | Source/TableDump.m | 4 |
2 files changed, 10 insertions, 4 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]; diff --git a/Source/TableDump.m b/Source/TableDump.m index a9b1be37..eaa86510 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -1985,7 +1985,9 @@ } // Walk through the array, contructing the XML string. - for ( i = 1 ; i < totalRows ; i++ ) { + // Note: the XML array starts at index 1 thus we have to iterate + // to i < totalRows + 1 in order to output the very last row. + for ( i = 1 ; i < totalRows + 1 ; i++ ) { // Update the progress bar if (totalRows) [singleProgressBar setDoubleValue:((i+1)*100/totalRows)]; |