From 0d1fff4494127c5676067c2c9bef597e7bc0ca94 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 21 Jan 2010 14:15:33 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20call=20to=20update=20the=20completi?= =?UTF-8?q?on=20list=20to=20neuralgic=20places=20-=20next=20steps=20to=20m?= =?UTF-8?q?inimize=20the=20traffic=20-=20ie=20manipulating=20the=20dict=20?= =?UTF-8?q?directly=20without=20querying=20-=20follows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDocument.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/TableDocument.m') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 8d9bdca7..d0410044 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1143,12 +1143,20 @@ if ([contextInfo isEqualToString:@"removeDatabase"]) { if (returnCode == NSAlertDefaultReturn) { [self _removeDatabase]; + + // Query the structure of all databases in the background (mainly for completion) + [NSThread detachNewThreadSelector:@selector(queryDbStructure) toTarget:mySQLConnection withObject:nil]; + } } // Add a new database else if ([contextInfo isEqualToString:@"addDatabase"]) { if (returnCode == NSOKButton) { [self _addDatabase]; + + // Query the structure of all databases in the background (mainly for completion) + [NSThread detachNewThreadSelector:@selector(queryDbStructure) toTarget:mySQLConnection withObject:nil]; + } else { // reset chooseDatabaseButton if([[self database] length]) -- cgit v1.2.3