Skip to content

Instantly share code, notes, and snippets.

@billibala
Last active August 29, 2015 14:07
Show Gist options
  • Save billibala/50bd2620bc00692100e1 to your computer and use it in GitHub Desktop.
Save billibala/50bd2620bc00692100e1 to your computer and use it in GitHub Desktop.
NSSplitView - how to programmatically hide or collapse a subview of a split view
// if it's a horizontal divider...
[_splitView setPosition:_splitView.bounds.size.height ofDividerAtIndex:0];
// Make sure NSSplitViewDelegate implements "- (BOOL)splitView:(NSSplitView *)splitView canCollapseSubview:(NSView *)subview"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment