diff options
author | rowanbeentje <rowan@beent.je> | 2010-08-12 12:44:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-08-12 12:44:10 +0000 |
commit | 50f15c41936be3fb62384834bb3629e09018e67b (patch) | |
tree | b05af8304c8b904dcd37cd93e709be1102cbbf1b /Source | |
parent | 9f254afea5ecd66914a69a32ccd7ef7da00b928b (diff) | |
download | sequelpro-50f15c41936be3fb62384834bb3629e09018e67b.tar.gz sequelpro-50f15c41936be3fb62384834bb3629e09018e67b.tar.bz2 sequelpro-50f15c41936be3fb62384834bb3629e09018e67b.zip |
Column autosizing:
- Handle "(not loaded)" placeholders; this addresses http://spbug.com/l/1420
- Fix row inspection of widely-spaced rows for large, fast-loading tables, ensuring up to maxRows rows are inspected
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMCopyTable.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index 5eab896d..44df07f6 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -480,11 +480,11 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; // Check the number of rows available to check, sampling every n rows if ([tableStorage count] < rowsToCheck) { - rowsToCheck = [tableStorage count]; rowStep = 1; } else { rowStep = floor([tableStorage count] / rowsToCheck); } + rowsToCheck = [tableStorage count]; // Set a default padding for this column columnBaseWidth = 24; @@ -500,6 +500,10 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; if ([contentString isNSNull]) { contentString = [prefs objectForKey:SPNullValue]; + // Same for cells for which loading has been deferred - likely blobs + } else if ([contentString isSPNotLoaded]) { + contentString = NSLocalizedString(@"(not loaded)", @"value shown for hidden blob and text fields"); + } else { // Otherwise, ensure the cell is represented as a short string |