2 // PBCollapsibleSplitView.h
5 // This is a limited subclass of a SplitView. It adds methods to aid in
6 // collapsing/uncollapsing subviews using the mouse or programmatically.
7 // Right now it only works for vertical layouts and with two subviews.
9 // Created by Johannes Gilger on 6/21/09.
10 // Copyright 2009 Johannes Gilger. All rights reserved.
13 #import <Cocoa/Cocoa.h>
14 #import "PBNiceSplitView.h"
16 @interface PBCollapsibleSplitView
: PBNiceSplitView
{
18 CGFloat bottomViewMin
;
19 CGFloat splitterPosition
;
22 @
property (readonly
) CGFloat topViewMin
;
23 @
property (readonly
) CGFloat bottomViewMin
;
25 - (void)setTopMin
:(CGFloat
)topMin andBottomMin
:(CGFloat
)bottomMin
;
27 - (void)keyDown
:(NSEvent
*)event
;