macoscocoanstoolbarnstoolbaritem

Badly rendered controls in NSToolbar


I've tried to add buttons and segmented control into the toolbar, but they are badly rendered (Image for the better imagination) - too thin, no matter what I do, I set even max and min size of NSToolbarItem, nothing works. Any idea what's wrong?


Solution

  • The only way to solve this is manually finding the correct size, due to mac rendering machine is computing the correct size (font and text) + padding.