Skip to content

Instantly share code, notes, and snippets.

@furusystems
Created August 10, 2009 23:02
Show Gist options
  • Save furusystems/165484 to your computer and use it in GitHub Desktop.
Save furusystems/165484 to your computer and use it in GitHub Desktop.
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