• 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: Sat, 28 Dec 2013 08:43:08 -0800

On Sat, Dec 28, 2013, at 06:05 AM, Uli Kusterer wrote:
>  Are you perhaps trying to implement “sticky” buttons? I.e. buttons that
>  toggle between on and off when clicked? These haven’t highlighted in
>  blue for a long time

No, they still highlight in blue (or gray if your control tint is
Graphite). Set showsStateBy to NSChangeBackgroundCellMask.

You can try out my ButtonTester tool to play with these flags in real
time: <https://github.com/kylesluder/ButtonTester>

>  Maybe you want NSPushOnPushOff button,
>  which according to the docs highlights the button when pressed, too?

You'll note that if you do this (which is just a shortcut for setting
showsStateBy and highlightsBy), and your system's control tint is set to
Aqua, that the button will highlight in blue.

--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>)
 >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: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Keep sibling view in Responder Chain
  • Next by Date: Re: Keep sibling view in Responder Chain
  • 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