• 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: Creating NSButton in Code does not set controlTint to currentControlTint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSButton in Code does not set controlTint to currentControlTint


  • Subject: Re: Creating NSButton in Code does not set controlTint to currentControlTint
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 26 Dec 2013 21:31:54 -0800

On Thu, Dec 26, 2013, at 07:08 PM, Peter Teeson wrote:
>     [_Cancel setBezelStyle:NSShadowlessSquareBezelStyle];

Ah. I think I've found (part of) your problem.
NSShadowlessSquareBezelStyle does not and to my knowledge has never
supported tinting with the user's tint color.

To my knowledge, the only bezel styles that respect the system's tint
color are NSRoundedBezelStyle and NSRoundedDisclosureBezelStyle, in
addition to buttons whose buttonType is NSSwitchButton or NSRadioButton.

But for the sake of completeness, I wrote a demo app that created a
button with the NSRoundedBezelStyle. It responds correctly to the tint
color setting in System Preferences, but it does NOT obey any tint color
set programmatically via -setControlTint:. I don't know if this is a new
behavior in Mavericks, or if this is true on earlier operating systems.

Given the existence of NSAppearance on Mavericks, I would not be
surprised if this is a regression that only happens on 10.9. But since
the expected behavior works Out Of The Box(TM) by default, I wouldn't be
surprised if nobody's noticed—or if Apple would actually consider this
regression an improvement.

--Kyle Sluder

_______________________________________________

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: Creating NSButton in Code does not set controlTint to currentControlTint
      • From: Peter Teeson <email@hidden>
References: 
 >Creating NSButton in Code does not set controlTint to currentControlTint (From: Peter Teeson <email@hidden>)
 >Re: Creating NSButton in Code does not set controlTint to currentControlTint (From: Uli Kusterer <email@hidden>)
 >Re: Creating NSButton in Code does not set controlTint to currentControlTint (From: Peter Teeson <email@hidden>)

  • Prev by Date: Re: Creating NSButton in Code does not set controlTint to currentControlTint
  • Next by Date: Re: Creating NSButton in Code does not set controlTint to currentControlTint
  • Previous by thread: Re: Creating NSButton in Code does not set controlTint to currentControlTint
  • Next by thread: Re: Creating NSButton in Code does not set controlTint to currentControlTint
  • Index(es):
    • Date
    • Thread