aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.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 /Source/TableDocument.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 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m12
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 949f2a68..0a68eda2 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1148,7 +1148,7 @@
BOOL isNavigatorVisible = [[[SPNavigatorController sharedNavigatorController] window] isVisible];
if(!isNavigatorVisible) {
- [[SPNavigatorController sharedNavigatorController] updateEntries:self];
+ [[SPNavigatorController sharedNavigatorController] updateEntriesForConnection:[self connectionID]];
}
// Show or hide the navigator
@@ -1166,16 +1166,6 @@
}
}
-/*
- * Called from MCPConnection or self to inform the navigator that an instance invoked queryDbStructure
- * or a window was closed
- */
-- (void)updateNavigator:(id)sender
-{
- if([[[SPNavigatorController sharedNavigatorController] window] isVisible])
- [[SPNavigatorController sharedNavigatorController] updateEntries:self];
-}
-
#pragma mark -
#pragma mark Task progress and notification methods