diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-21 22:18:27 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-21 22:18:27 +0000 |
commit | 7ead84b0868975752f445d1917bc693a5bf502b7 (patch) | |
tree | 8bb28e0a7b5482fc13276bc192e738d6e9761b8b /Source/TableContent.m | |
parent | f184235a7f7996e68f4f6548ec8932b289e3d3c1 (diff) | |
download | sequelpro-7ead84b0868975752f445d1917bc693a5bf502b7.tar.gz sequelpro-7ead84b0868975752f445d1917bc693a5bf502b7.tar.bz2 sequelpro-7ead84b0868975752f445d1917bc693a5bf502b7.zip |
- Relocate the table changed notification, allowing table info pane to update early in the change process, but ensure the change notification occurs on the main thread for stability. Added NSNotificationAdditions from the Colloquy project for this.
- Change the design of the progress indicator layer, and tweak task progress for improved feedback and less flickering by correctly updating interface as appropriate, and delaying status changes for a short time. This partially addresses Issue #455.
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index 60a7ce4a..bcaed509 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -638,7 +638,8 @@ if (rowsProcessed < targetRowCount) { [tableDocumentInstance setTaskPercentage:(rowsProcessed*relativeTargetRowCount)]; } else if (rowsProcessed == targetRowCount) { - [tableDocumentInstance performSelectorOnMainThread:@selector(setTaskProgressToIndeterminate) withObject:nil waitUntilDone:NO]; + [tableDocumentInstance setTaskPercentage:100.0]; + [tableDocumentInstance performSelectorOnMainThread:@selector(setTaskProgressToIndeterminateAfterDelay:) withObject:[NSNumber numberWithBool:YES] waitUntilDone:NO]; } } |