From 41b5cc6f8c339fee5af8ac8f07d3b81f9889b975 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 22 Oct 2009 23:49:30 +0000 Subject: - 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. --- Source/TableDocument.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/TableDocument.m') 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) { -- cgit v1.2.3