diff options
author | rowanbeentje <rowan@beent.je> | 2010-04-18 22:46:02 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-04-18 22:46:02 +0000 |
commit | d432919237a6ed22798851a112e8c49e5086b9ed (patch) | |
tree | da254dda343dad711c6d1056cf4ea2a62734c4b5 /Source/TableContent.m | |
parent | 932fdc78e4c6739371edf3629a11a0659beb5c1e (diff) | |
download | sequelpro-d432919237a6ed22798851a112e8c49e5086b9ed.tar.gz sequelpro-d432919237a6ed22798851a112e8c49e5086b9ed.tar.bz2 sequelpro-d432919237a6ed22798851a112e8c49e5086b9ed.zip |
- Add a new couldCommitCurrentViewActions method to TableDocument, and standardise current view-commit-checks to use that
- Add checking of that status to history navigation (fixing http://spbug.com/l/127 ) and window closing (fixing http://spbug.com/lr/263 )
- Improve thread safety/deferred actions in TableContent
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index cfad7136..b20b48d4 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -221,7 +221,7 @@ } // Update display if necessary - [tableContentView performSelectorOnMainThread:@selector(displayIfNeeded) withObject:nil waitUntilDone:NO]; + [[tableContentView onMainThread] setNeedsDisplay:YES]; // Init copyTable with necessary information for copying selected rows as SQL INSERT [tableContentView setTableInstance:self withTableData:tableValues withColumns:dataColumns withTableName:selectedTable withConnection:mySQLConnection]; @@ -737,9 +737,9 @@ // Update the table view with new results every now and then if (rowsProcessed > nextTableDisplayBoundary) { if (rowsProcessed > tableRowsCount) tableRowsCount = rowsProcessed; - [tableContentView performSelectorOnMainThread:@selector(noteNumberOfRowsChanged) withObject:nil waitUntilDone:NO]; + [[tableContentView onMainThread] noteNumberOfRowsChanged]; if (!tableViewRedrawn) { - [tableContentView performSelectorOnMainThread:@selector(displayIfNeeded) withObject:nil waitUntilDone:NO]; + [[tableContentView onMainThread] setNeedsDisplay:YES]; tableViewRedrawn = YES; } nextTableDisplayBoundary *= 2; |