Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
- Subject: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
- From: Jens Alfke <email@hidden>
- Date: Wed, 21 Oct 2015 08:39:58 -0700
> On Oct 20, 2015, at 11:49 PM, Jacek Oleksy <email@hidden> wrote:
>
> Does it mean that there is no way to make custom toolbar look
> native?:/ Why would *anyone* make a decision like that?
Apple's HI designers decide how things should look visually, and they decided toolbars look best with buttons of that height. Then the AppKit engineers implemented the toolbar display code to produce the appearance defined in the visual design.
It may just not have occurred to anyone that this makes it infeasible to implement a custom toolbar, since almost no app does that. (My suspicion is that if you asked the HI designers they’d say “a toolbar must appear at the top of a window. Don’t put a toolbar elsewhere.”) As I think I said before, file a bug report asking for the functionality you want.
My advice would be to give up on making the toolbar pixel-for-pixel identical to a standard one. It’s already nonstandard because it’s in a different place. I don’t think having buttons 2 pixels taller is going to ruin the appearance; most people probably won’t even notice.
—Jens
_______________________________________________
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