Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions SplitViewSidebar/FixedSidebarSplitViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,14 @@ - (IBAction)collapseSidebar:(id)sender {

*/

// There's a bug in the superclass; it doesn't check the splitViewItems count and so it'll crash if autolayout happens before viewDidLoad. This could happen if your window has a toolbar.
- (BOOL)splitView:(NSSplitView *)splitView
shouldHideDividerAtIndex:(NSInteger)dividerIndex {
if ([self.splitViewItems count] == 0) {
return NO;
}
return [super splitView:splitView shouldHideDividerAtIndex:dividerIndex];
}


@end