diff --git a/Medianno/MADocWindow.mm b/Medianno/MADocWindow.mm index 7f5bfab..15124eb 100644 --- a/Medianno/MADocWindow.mm +++ b/Medianno/MADocWindow.mm @@ -188,6 +188,24 @@ static NSTimeInterval sLastSkip = 0.0; } } +#pragma mark Split management + +-(CGFloat)splitView:(NSSplitView *)splitView constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)dividerIndex +{ + return splitView.frame.size.height-108.0; +} + +-(CGFloat)splitView:(NSSplitView *)splitView constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)dividerIndex +{ + return 80.0; +} + +// This only prevents resizing the topView in cases where the user does not use the divider (resizing the window primarily). +-(BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)subview +{ + return subview != [[splitView subviews] objectAtIndex:0]; +} + @end @implementation MADocumentWindow diff --git a/Medianno/en.lproj/MADocument.xib b/Medianno/en.lproj/MADocument.xib index 780dc49..050d546 100644 --- a/Medianno/en.lproj/MADocument.xib +++ b/Medianno/en.lproj/MADocument.xib @@ -114,13 +114,13 @@ 15 2 - {{133, 235}, {1280, 809}} + {{200, 400}, {1280, 809}} 1886912512 Window MADocumentWindow View - {94, 86} + {450, 400} 256 @@ -397,7 +397,7 @@ YES - 298 + 266 YES @@ -421,7 +421,7 @@ - 310 + 274 YES @@ -644,7 +644,7 @@ 0 - 4 + 0 0 NO @@ -663,7 +663,7 @@ {{0, 0}, {2560, 1418}} - {94, 108} + {450, 422} {10000000000000, 10000000000000} 128 YES @@ -1069,6 +1069,14 @@ 100179 + + + delegate + + + + 100180 + @@ -1395,6 +1403,8 @@ 100148.IBPluginDependency 100161.IBPluginDependency 100162.IBPluginDependency + 5.IBNSWindowAutoPositionCentersHorizontal + 5.IBNSWindowAutoPositionCentersVertical 5.IBPluginDependency 5.IBWindowTemplateEditedContentRect 6.IBPluginDependency @@ -1439,6 +1449,8 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin {{133, 170}, {507, 413}} com.apple.InterfaceBuilder.CocoaPlugin @@ -1456,7 +1468,7 @@ - 100179 + 100180