aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index a0545fbc..53dfb908 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -34,8 +34,8 @@ enum {
#import "SPDatabaseDocument.h"
#import "SPConnectionController.h"
-
-#import <SPMySQL/SPMySQL.h>
+#import "SPConnectionHandler.h"
+#import "SPConnectionControllerInitializer.h"
#import "SPTablesList.h"
#import "SPTableStructure.h"
@@ -95,6 +95,8 @@ enum {
#import "SPDatabaseRename.h"
#endif
+#import <SPMySQL/SPMySQL.h>
+
// Constants
#ifndef SP_REFACTOR
static NSString *SPCreateSyntx = @"SPCreateSyntax";
@@ -4103,7 +4105,7 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase";
// If the window is being set for the first time - connection controller is visible - update focus
if (!parentWindow && !mySQLConnection) {
#ifndef SP_REFACTOR
- [aWindow makeFirstResponder:[connectionController valueForKey:@"favoritesTable"]];
+ [aWindow makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
#endif
[connectionController performSelector:@selector(updateFavoriteSelection:) withObject:self afterDelay:0.0];
}
@@ -4390,12 +4392,12 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase";
[self updateWindowTitle:self];
// Deselect all favorites on the connection controller
- [[connectionController valueForKeyPath:@"favoritesTable"] deselectAll:connectionController];
+ [[connectionController favoritesOutlineView] deselectAll:connectionController];
// Suppress the possibility to choose an other connection from the favorites
// if a connection should initialized by SPF file. Otherwise it could happen
// that the SPF file runs out of sync.
- [[connectionController valueForKeyPath:@"favoritesTable"] setEnabled:NO];
+ [[connectionController favoritesOutlineView] setEnabled:NO];
// Ensure the connection controller is set to a blank slate
[connectionController setName:@""];