aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPContentFilterManager.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-18 00:44:03 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-18 00:44:03 +0000
commit1c7cf0aa49e68714dbfc4d7ca01fccd519e22aee (patch)
tree151136a6f76aa3cf431dc19a2971894462edec90 /Source/SPContentFilterManager.m
parentd916e1e1514cd60bd9228ceab4c3cf27398a8b05 (diff)
downloadsequelpro-1c7cf0aa49e68714dbfc4d7ca01fccd519e22aee.tar.gz
sequelpro-1c7cf0aa49e68714dbfc4d7ca01fccd519e22aee.tar.bz2
sequelpro-1c7cf0aa49e68714dbfc4d7ca01fccd519e22aee.zip
Manually set the delegate of the anchored button bars in the content filter editor and query favorites editor as you can't do it in IB.
Diffstat (limited to 'Source/SPContentFilterManager.m')
-rw-r--r--Source/SPContentFilterManager.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m
index 2fd22dfd..33be5048 100644
--- a/Source/SPContentFilterManager.m
+++ b/Source/SPContentFilterManager.m
@@ -29,6 +29,7 @@
#import "SPQueryController.h"
#import "TableContent.h"
#import "SPConstants.h"
+#import "SPConnectionController.h"
#define SP_MULTIPLE_SELECTION_PLACEHOLDER_STRING NSLocalizedString(@"[multiple selection]", @"[multiple selection]")
#define SP_NO_SELECTION_PLACEHOLDER_STRING NSLocalizedString(@"[no selection]", @"[no selection]")
@@ -75,7 +76,6 @@
*/
- (void)awakeFromNib
{
-
[contentFilterTextView setAllowsDocumentBackgroundColorChange:YES];
NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary];
@@ -141,6 +141,8 @@
// Set column header
[[[contentFilterTableView tableColumnWithIdentifier:@"MenuLabel"] headerCell] setStringValue:[NSString stringWithFormat:NSLocalizedString(@"‘%@’ Fields Content Filters", @"content filter for field type ‘%@’"), filterType]];
+ // Set the button delegate
+ [splitViewButtonBar setSplitViewDelegate:self];
}
#pragma mark -
@@ -384,7 +386,7 @@
*/
- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset
{
- return (proposedMax - 220);
+ return (proposedMax - 245);
}
/**