• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
      • From: Richard Charles <email@hidden>
  • Prev by Date: Re: TableView Segue
  • Next by Date: Re: Dead Reckoning
  • Previous by thread: Re: TableView Segue
  • Next by thread: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
  • Index(es):
    • Date
    • Thread