• 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
Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar


  • Subject: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 11 Oct 2015 16:10:21 -0700

> On Oct 11, 2015, at 2:07 PM, Jacek Oleksy <email@hidden> wrote:
>
> The problem can be seen after creating a new project in XCode, adding
> toolbar and putting a button on it (with proper style) and then
> putting another button on the view. The height differs (24px vs 22px).

A button in a toolbar is not an NSButton; it’s an NSToolbarItem that displays a button. The metrics for toolbar buttons are somewhat different from buttons in the main part of a window. You may not be able to replicate the appearance exactly by using an NSButton, unfortunately.

—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


  • Follow-Ups:
    • Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
      • From: Jacek Oleksy <email@hidden>
References: 
 >NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar (From: Jacek Oleksy <email@hidden>)
 >Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar (From: Richard Charles <email@hidden>)
 >Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar (From: Jacek Oleksy <email@hidden>)

  • Prev by Date: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
  • Next by Date: How to make UISplitViewController behave ?
  • Previous by thread: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
  • Next by thread: Re: NSButton with NSTexturedRoundedBezelStyle outside of NSToolbar
  • Index(es):
    • Date
    • Thread