Skip to content
Newer
Older
100644 29 lines (23 sloc) 603 Bytes
d669050 @heipei Add PBCollapsibleSplitView as subclass of PBNiceSplitView
heipei authored Jun 21, 2009
1 //
2 // PBCollapsibleSplitView.m
3 // GitX
4 //
5 // Created by Johannes Gilger on 6/21/09.
6 // Copyright 2009 Johannes Gilger. All rights reserved.
7 //
8
9 #import "PBCollapsibleSplitView.h"
10
11 @implementation PBCollapsibleSplitView
12 @synthesize topViewMin, bottomViewMin;
13
14 - (void)setTopMin:(CGFloat)topMin andBottomMin:(CGFloat)bottomMin {
15 topViewMin = topMin;
16 bottomViewMin = bottomMin;
17 }
18
19 - (void)uncollapse {
20 for (NSView *subview in [self subviews]) {
21 if([self isSubviewCollapsed:subview]) {
22 [self setPosition:[self frame].size.height / 3 ofDividerAtIndex:0];
23 [self adjustSubviews];
24 }
25 }
26 }
27
28 @end
Something went wrong with that request. Please try again.