Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
- Subject: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 17 Dec 2014 22:57:15 -0800
> On 2014 Dec 17, at 22:32, Ken Thomases <email@hidden> wrote:
>
> Just to be clear, a template image should not be black and white. It should be black and clear. Or, more accurately, the only thing that matters is the alpha channel.
I think my images are clear. The stupid blue background shows through just fine :(
> If you use a proper template image in a button whose showsStateBy includes NSChangeBackgroundCellMask, it will show a blue effect when the button's state is NSOnState. (You don't normally explicitly set the showsStateBy of a button's cell, although you certainly can.
Ken, showStateBy, presuming it means “how to show the state”, sure seems like it would be the trick I am missing. How do you do that?? If you know, you are smarter than both Xcode’s documentation viewer and even Google, who just told me:
Your search - showStateBy site:developer.apple.com - did not match any documents.
Jerry
_______________________________________________
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