diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-31 16:43:52 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-31 16:43:52 +0000 |
commit | 8d435e0e10c45bbd502730d6580fce4ffc7de77e (patch) | |
tree | e916016a6e5ded07ddb7dc76ef3bdbcbea2fa6c4 /Source | |
parent | 097d8ea042e9545bce160fa3001d53fc74611537 (diff) | |
download | sequelpro-8d435e0e10c45bbd502730d6580fce4ffc7de77e.tar.gz sequelpro-8d435e0e10c45bbd502730d6580fce4ffc7de77e.tar.bz2 sequelpro-8d435e0e10c45bbd502730d6580fce4ffc7de77e.zip |
Manually set the connection favorites button bar delegate to ensure the split view delegate methods are called.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPPreferenceController.h | 4 | ||||
-rw-r--r-- | Source/SPPreferenceController.m | 3 | ||||
-rw-r--r-- | Source/SPQueryFavoriteManager.m | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/Source/SPPreferenceController.h b/Source/SPPreferenceController.h index 029993d9..9a6b3101 100644 --- a/Source/SPPreferenceController.h +++ b/Source/SPPreferenceController.h @@ -27,7 +27,7 @@ #import "SPConstants.h" -@class SPKeychain; +@class BWAnchoredButtonBar, SPKeychain; @interface SPPreferenceController : NSWindowController { @@ -62,6 +62,8 @@ IBOutlet NSTextField *editorFontName; IBOutlet NSTextField *globalResultTableFontName; + + IBOutlet BWAnchoredButtonBar *splitViewButtonBar; SPKeychain *keychain; NSDictionary *currentFavorite; diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index aae63224..bdb3ff5e 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -91,6 +91,9 @@ // Hide the tabs on the favorites tab view - left visible in IB for easy use [favoritesTabView setTabViewType:NSNoTabsNoBorder]; + + // Set the button bar delegate + [splitViewButtonBar setSplitViewDelegate:self]; [self updateDefaultFavoritePopup]; diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index 9d30e597..2202bfd8 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -129,7 +129,7 @@ // Set Remove button state [removeButton setEnabled:([favoritesTableView numberOfSelectedRows] > 0)]; - // Set the button delegate + // Set the button bar delegate [splitViewButtonBar setSplitViewDelegate:self]; } |