pawelropa
pawelropa

Reputation: 1439

Sidebar Demo - replaceSubview

I have NSSplitView with divider style set as thin and it looks great. enter image description here

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?

enter image description here

Upvotes: 4

Views: 658

Answers (1)

sudo rm -rf
sudo rm -rf

Reputation: 29524

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

[myGreatView setBorderType:NSNoBorder];

Upvotes: 4

Related Questions