Demo Sidebar - replaceSubview

I have an NSSplitView with a divider type that is thin and looks great. enter image description here

However, if I replaced one of the subzones with this line of code

[self.horizontalSplitView replaceSubview:[[self.horizontalSplitView subviews] objectAtIndex:0] with:myGreatView]; 

The separator looks good, how can I fix this problem?

enter image description here

+4
source share
1 answer

The problem is that your view ( myGreatView ) has a border. Set the border type to NSNoBorder .

 [myGreatView setBorderType:NSNoBorder]; 
+4
source

All Articles