aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-05-14 18:43:05 +0000
committerstuconnolly <stuart02@gmail.com>2011-05-14 18:43:05 +0000
commitc1de88ac62381469ad01975c0f28e5847a65edb9 (patch)
treec5efc5ad579cdb1df4e8634c8df5b61795f32d33 /Source/SPDatabaseDocument.m
parent2dbae24c7735ead0524bd9847af6ea99d8654ec6 (diff)
downloadsequelpro-c1de88ac62381469ad01975c0f28e5847a65edb9.tar.gz
sequelpro-c1de88ac62381469ad01975c0f28e5847a65edb9.tar.bz2
sequelpro-c1de88ac62381469ad01975c0f28e5847a65edb9.zip
Fix exceptions being thrown upon launch.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 04d4b3f3..5a2bff92 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -3981,7 +3981,7 @@ static NSString *SPCreateSyntx = @"SPCreateSyntax";
// 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:(NSView *)[connectionController favoritesOutlineView]];
#endif
[connectionController performSelector:@selector(updateFavoriteSelection:) withObject:self afterDelay:0.0];
}
@@ -4268,12 +4268,12 @@ static NSString *SPCreateSyntx = @"SPCreateSyntax";
[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:@""];