diff options
author | rowanbeentje <rowan@beent.je> | 2009-10-22 23:49:30 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-10-22 23:49:30 +0000 |
commit | 41b5cc6f8c339fee5af8ac8f07d3b81f9889b975 (patch) | |
tree | 4ea7d1110f1e132f4b27f58b4f27bd1f8a819b35 /Source/TableDocument.m | |
parent | 20baed5257ce1152c1f25c5a953ca821b50050db (diff) | |
download | sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.tar.gz sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.tar.bz2 sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.zip |
- Improve table and task redrawing during threaded table content loads
- Correctly update the table content count when duplicating a row, and cancelling the add. This addresses issue #440.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 1d95c695..daa8d049 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -211,7 +211,7 @@ // Set up the progress indicator layer - add to main window, change indicator color and size [taskProgressLayer setHidden:YES]; [taskProgressLayer setFrame:[contentViewSplitter frame]]; - [[tableWindow contentView] addSubview:taskProgressLayer]; + [[tableWindow contentView] addSubview:taskProgressLayer positioned:NSWindowAbove relativeTo:contentViewSplitter]; [taskProgressIndicator setForeColor:[NSColor whiteColor]]; } @@ -1242,9 +1242,9 @@ * Sets the task percentage progress - the first call to this automatically * switches the progress display to determinate. */ -- (void) setTaskPercentage:(NSNumber *)taskPercentage +- (void) setTaskPercentage:(float)taskPercentage { - taskProgressValue = [taskPercentage floatValue]; + taskProgressValue = taskPercentage; if (taskProgressValue > taskDisplayLastValue + taskProgressValueDisplayInterval || taskProgressValue < taskDisplayLastValue - taskProgressValueDisplayInterval) { |