Re: Creating NSButton in Code does not set controlTint to currentControlTint
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