Reputation: 1439
I have NSSplitView with divider style set as thin and it looks great.
However, if I replace one of a subviews with this line of code
[self.horizontalSplitView replaceSubview:[[self.horizontalSplitView subviews] objectAtIndex:0] with:myGreatView];
The divider looks kind of bad, how can I fix this issue?
Upvotes: 4
Views: 658
Reputation: 29524
The problem is that your view (myGreatView
) has a border. Set the border type to NSNoBorder
.
[myGreatView setBorderType:NSNoBorder];
Upvotes: 4