I'm trying to add a textured rounded button to NSToolbar
. I used Interface Builder to add NSButton
to allowed toolbar items and default items.
I'm using Safari-style toolbar with window!.titleVisibility
set to .hidden
.
Xcode 8 prints this error message:
NSToolbarItem (<NSToolbarItem: 0x100c24000>) had to adjust the size of
<NSButton: 0x100c36690> from {43, 25} to {45, 27} as the height is expected to be
27.000000. Make sure that this toolbar item view has a valid frame/min/max size.
This worked for me in previous OS X releases.
I tried setting min and max toolbar item height to 27, but Xcode automatically reverts min to 25.