aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index d43be841..53dfb908 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -34,10 +34,9 @@ enum {
#import "SPDatabaseDocument.h"
#import "SPConnectionController.h"
+#import "SPConnectionHandler.h"
#import "SPConnectionControllerInitializer.h"
-#import <SPMySQL/SPMySQL.h>
-
#import "SPTablesList.h"
#import "SPTableStructure.h"
#ifndef SP_REFACTOR /* headers */
@@ -87,7 +86,6 @@ enum {
#ifndef SP_REFACTOR /* headers */
#import "SPBundleHTMLOutputController.h"
#import "SPConnectionDelegate.h"
-#import "SPConnectionHandler.h"
#endif
#ifdef SP_REFACTOR /* headers */
@@ -97,6 +95,8 @@ enum {
#import "SPDatabaseRename.h"
#endif
+#import <SPMySQL/SPMySQL.h>
+
// Constants
#ifndef SP_REFACTOR
static NSString *SPCreateSyntx = @"SPCreateSyntax";
@@ -258,6 +258,7 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase";
#endif
+
- (void)awakeFromNib
{
#ifndef SP_REFACTOR
@@ -4019,6 +4020,7 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase";
[createTableSyntaxWindow orderOut:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[self setParentWindow:nil];
+
}
#ifndef SP_REFACTOR
@@ -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:(NSView *)[connectionController favoritesOutlineView]];
+ [aWindow makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]];
#endif
[connectionController performSelector:@selector(updateFavoriteSelection:) withObject:self afterDelay:0.0];
}