Created
August 10, 2009 23:02
-
-
Save furusystems/165484 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var splitView = [[CPSplitView alloc] initWithFrame:CGRectMake(0.0, 0.0, CGRectGetWidth([contentView bounds]), CGRectGetHeight([contentView bounds]))]; | |
[splitView setIsPaneSplitter: YES]; | |
[splitView setVertical:YES]; | |
[splitView setDelegate: nil]; | |
[splitView setAutoresizingMask: CPViewWidthSizable | CPViewHeightSizable]; | |
[splitView setBackgroundColor: [CPColor darkGrayColor]]; | |
[contentView addSubview: splitView]; | |
// Sidebar | |
var sidebar = [[SidebarView alloc] init:contentView]; | |
[contentView addSubview: sidebar]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment