Last active
August 29, 2015 14:07
-
-
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
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
// 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