NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
- Subject: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
- From: Jacek Oleksy <email@hidden>
- Date: Fri, 09 Oct 2015 15:41:41 +0200
HI All,
I am creating custom toolbar and placing some buttons in it. I want it
to look as close to native toolbar as possible (and no, sadly I cannot
use NSToolbar).
The problem is that when I put NSButton on the custom toolbar with
NSTexturedRoundedBezelStyle, its height is 22 pixels. However, if a
button like this is put on NSToolbar, it gets a height of 24 pixels.
Anyone has a clue what is going on here? Does button is somehow aware
that it is put in NSToolbar and changes its appearance?
Is there any way to fool NSButton into thinking that it is put in a NSToolbar?
Thanks in advance for any help!
Cheers,
Jacek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden