aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerInitializer.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2012-07-05 19:02:47 +0000
committersqlprodev <sqlprodev@northofthree.com>2012-07-05 19:02:47 +0000
commit2dc02505710b3980704637e7c7647057ef3c0e14 (patch)
tree2e0790f49cd908a949d1cf5284afd33b6f18a4e2 /Source/SPConnectionControllerInitializer.m
parentd8a3650b1106fa8a4563e032e7ad66ca076da01b (diff)
downloadsequelpro-2dc02505710b3980704637e7c7647057ef3c0e14.tar.gz
sequelpro-2dc02505710b3980704637e7c7647057ef3c0e14.tar.bz2
sequelpro-2dc02505710b3980704637e7c7647057ef3c0e14.zip
A few more tweaks for SP r3710 merge with Coda
Diffstat (limited to 'Source/SPConnectionControllerInitializer.m')
-rw-r--r--Source/SPConnectionControllerInitializer.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/SPConnectionControllerInitializer.m b/Source/SPConnectionControllerInitializer.m
index 675c8f62..8a30bf40 100644
--- a/Source/SPConnectionControllerInitializer.m
+++ b/Source/SPConnectionControllerInitializer.m
@@ -57,8 +57,10 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
// Weak reference
dbDocument = document;
+#ifndef SP_REFACTOR
databaseConnectionSuperview = [dbDocument databaseView];
databaseConnectionView = [dbDocument valueForKey:@"contentViewSplitter"];
+#endif
// Keychain references
connectionKeychainID = nil;
@@ -79,6 +81,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
[self loadNib];
[self registerForNotifications];
+#ifndef SP_REFACTOR
// Hide the main view and position and display the connection view
[databaseConnectionView setHidden:YES];
[connectionView setFrame:[databaseConnectionView frame]];
@@ -117,6 +120,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
// Set sort items
currentSortItem = (SPFavoritesSortItem)[prefs integerForKey:SPFavoritesSortedBy];
reverseFavoritesSort = [prefs boolForKey:SPFavoritesSortedInReverse];
+#endif
initComplete = YES;
}
@@ -270,6 +274,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
*/
- (void)setUpSelectedConnectionFavorite
{
+#ifndef SP_REFACTOR
SPTreeNode *favorite = [self _favoriteNodeForFavoriteID:[prefs integerForKey:[prefs boolForKey:SPSelectLastFavoriteUsed] ? SPLastFavoriteID : SPDefaultFavorite]];
if (favorite) {
@@ -288,6 +293,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
[self resizeTabViewToConnectionType:SPTCPIPConnection animating:NO];
}
+#endif
}
#pragma mark -
@@ -299,7 +305,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
*/
- (void)_processFavoritesDataChange:(NSNotification *)aNotification
{
-
+#ifndef SP_REFACTOR
// Check the supplied notification for the sender; if the sender
// was this object, ignore it
if ([aNotification object] == self) return;
@@ -315,6 +321,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
[selectionIndexes addIndex:anIndex];
}
[favoritesOutlineView selectRowIndexes:selectionIndexes byExtendingSelection:NO];
+#endif
}
/**
@@ -322,6 +329,7 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
*
* @param node The node to traverse
*/
+#ifndef SP_REFACTOR
- (void)_restoreOutlineViewStateNode:(SPTreeNode *)node
{
if ([node isGroup]) {
@@ -340,5 +348,6 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
}
}
}
+#endif
@end