aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-08 16:22:09 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-08 16:22:09 +0000
commitb312414a21b97a101a527ae91a8f9a5ac55b1a0c (patch)
tree6d6854edc35c888cf16a6cdbed3caa0431a6949c /Source
parent16a1da9e3eb7cc48c782e53142c4b94113239f1c (diff)
downloadsequelpro-b312414a21b97a101a527ae91a8f9a5ac55b1a0c.tar.gz
sequelpro-b312414a21b97a101a527ae91a8f9a5ac55b1a0c.tar.bz2
sequelpro-b312414a21b97a101a527ae91a8f9a5ac55b1a0c.zip
Fix user manager splitview maximum and minimum sizes.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPUserManager.h6
-rw-r--r--Source/SPUserManager.m7
2 files changed, 10 insertions, 3 deletions
diff --git a/Source/SPUserManager.h b/Source/SPUserManager.h
index 88f88ee6..0bcc82bd 100644
--- a/Source/SPUserManager.h
+++ b/Source/SPUserManager.h
@@ -24,7 +24,7 @@
#import <Cocoa/Cocoa.h>
-@class MCPConnection;
+@class MCPConnection, BWAnchoredButtonBar;
@interface SPUserManager : NSWindowController
{
@@ -53,7 +53,9 @@
IBOutlet NSButton *removeSchemaPrivButton;
IBOutlet NSTextField *userNameTextField;
-
+
+ IBOutlet BWAnchoredButtonBar *splitViewButtonBar;
+
NSMutableArray *schemas;
NSMutableArray *grantedSchemaPrivs;
NSMutableArray *availablePrivs;
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index 317ca848..0cc2b125 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -30,6 +30,7 @@
#import "SPArrayAdditions.h"
#import "SPStringAdditions.h"
#import "SPGrowlController.h"
+#import "SPConnectionController.h"
#define COLUMNIDNAME @"NameColumn"
@@ -122,6 +123,9 @@
[imageAndTextCell setEditable:NO];
[tableColumn setDataCell:imageAndTextCell];
+ // Set the button delegate
+ [splitViewButtonBar setSplitViewDelegate:self];
+
[self _initializeUsers];
[self _initializeSchemaPrivs];
[super windowDidLoad];
@@ -1183,7 +1187,7 @@
*/
- (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset
{
- return (proposedMax - 220);
+ return (proposedMax - 555);
}
/**
@@ -1196,6 +1200,7 @@
#pragma mark -
#pragma mark TableView Delegate Methods
+
- (void)tableViewSelectionDidChange:(NSNotification *)notification
{
if ([notification object] == schemasTableView)