Re: Pre-requisites for automatic image highlighting in NSButton?
Re: Pre-requisites for automatic image highlighting in NSButton?
- Subject: Re: Pre-requisites for automatic image highlighting in NSButton?
- From: "Ken Ferry" <email@hidden>
- Date: Mon, 28 Jul 2008 22:08:36 -0700
Hi Mark,
You haven't mentioned anything about the isTeplate property yet, so
maybe you aren't aware of it.
Take a look at the section of the AppKit Leopard release notes titled
"Text and image effects: -[NSImage isTemplate]".
<http://developer.apple.com/releasenotes/Cocoa/AppKit.html#TextAndImageEffects>.
-Ken
On Mon, Jul 28, 2008 at 10:02 PM, Mark Allerton <email@hidden> wrote:
> Hello,
>
> I have been trying to get automatic image highlighting to work in
> "rounded textured" style buttons, created in IB. So far I am able to
> make this work just fine when using "system provided" images (for
> example "NSGoRightTemplate") but unable to make this work with my own
> images provided as either PNG or icns.
>
> Just to be clear what I am referring to here, I mean the highlighting
> that occurs on "push on push off" or "toggle" style buttons. For "push
> on push off", the image is (or should be) highlighted in white on the
> dark gray background for NSOnState, and for toggle style the NSOnState
> highlight is blue. I've followed the advice in the HIG and just
> specified an image for the button and no "alt. image". And if I use
> NSGoRightTemplate all is well, with my images not so much.
>
> So it seems to me there must be some additional pre-requisites for the
> button images that I've missed - can anyone advise? My images do
> already have an alpha mask, and like I say I have tried PNG and ICNS
> format so far.
>
> Cheers
>
> ..Mark..
> _______________________________________________
>
> 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
>
_______________________________________________
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