aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-25 08:59:35 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-25 08:59:35 +0000
commit74cb1152eeb0dcc83f12ea6cf040eacc4e15c551 (patch)
tree71ff5a4d8a069b3f2c8d46be4fe2a4854e42f9fc /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
parent32e858b26923b371a93e800687a13edf1254e445 (diff)
downloadsequelpro-74cb1152eeb0dcc83f12ea6cf040eacc4e15c551.tar.gz
sequelpro-74cb1152eeb0dcc83f12ea6cf040eacc4e15c551.tar.bz2
sequelpro-74cb1152eeb0dcc83f12ea6cf040eacc4e15c551.zip
• Navigator
- make usage of a notification sent by the [MCPConnection queryDbStructure] to update the navigator, and this decouples a doc window and MCPConnection from the navigator - minimized the tree update - now connectionID-based - any tree update will be now performed on main thread and waits until done to avoid 'overlapping' updates triggered by different notifications which normally ended up in an inchoate tree display
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 94fb4434..0685d162 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -44,7 +44,7 @@ const char *kMCPConnectionDefaultSocket = MYSQL_UNIX_ADDR;
const NSUInteger kMCPConnection_Not_Inited = 1000;
const NSUInteger kLengthOfTruncationForLog = 100;
-static BOOL sTruncateLongFieldInLogs = YES;
+static BOOL sTruncateLongFieldInLogs = YES;
/**
* Privte API
@@ -1365,7 +1365,7 @@ void performThreadedKeepAlive(void *ptr)
// Reset the query cancelled boolean
queryCancelled = NO;
-
+
// If no connection is present, return nil.
if (!mConnected) {
// Write a log entry
@@ -2033,12 +2033,12 @@ void performThreadedKeepAlive(void *ptr)
}
uniqueDbIdentifier = [[NSDictionary dictionaryWithDictionary:uniqueIdentifier] retain];
-
- if(delegate && [delegate respondsToSelector:@selector(updateNavigator:)])
- [[self delegate] updateNavigator:self];
+ // Notify that the structure querying has been performed
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"SPDBStructureWasUpdated" object:delegate];
isQueryingDbStructure = NO;
[queryPool release];
+
return;
}
mysql_close(structConnection);