1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma mark -
#pragma mark NSSplitViewDelegate

- (void)splitView:(NSSplitView *)splitView resizeSubviewsWithOldSize:(NSSize)oldSize {

	if ([splitView subviews].count < 2) {
		return;
	}

	NSSize splitViewSize = splitView.frame.size;

	NSView *sourceView = [[splitView subviews] objectAtIndex:0];	
	NSSize sourceViewSize = sourceView.frame.size;
	sourceViewSize.height = splitViewSize.height;
	[sourceView setFrameSize:sourceViewSize];

	NSView *contentView = [[splitView subviews] objectAtIndex:1];
	NSSize contentViewSize = NSZeroSize;
	CGFloat new
	contentViewSize.height = splitViewSize.height;
	contentViewSize.width = splitViewSize.width - [splitView dividerThickness] - sourceViewSize.width;
	[contentView setFrameSize:contentViewSize];
}