X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FEnjoyableApplicationDelegate.m;h=5c6847645b8be5f28587c0977f6bd0f7f9865dbf;hp=c477511686b30a9db005603dd3fc0bdac24c6300;hb=18160be57e656a3733fc29878caddcda5081a2c2;hpb=28dfa5b6977e17dd9951d1d8239052a15e38e5c2 diff --git a/Classes/EnjoyableApplicationDelegate.m b/Classes/EnjoyableApplicationDelegate.m index c477511..5c68476 100644 --- a/Classes/EnjoyableApplicationDelegate.m +++ b/Classes/EnjoyableApplicationDelegate.m @@ -108,6 +108,11 @@ } #define OUTPUT_PANE_MIN_WIDTH 390 +#define INPUT_PANE_MIN_WIDTH 160 + +- (CGFloat)splitView:(NSSplitView *)splitView constrainMinCoordinate:(CGFloat)proposedMinimumPosition ofSubviewAt:(NSInteger)dividerIndex { + return INPUT_PANE_MIN_WIDTH; +} - (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset { return proposedMax - OUTPUT_PANE_MIN_WIDTH;