Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButton's background turning white instead of transparent?




I've got these toolbar buttons, which aren't a proper toolbar, they are just NSButtons.


I've set an icon for them, which has a transparancy mask. The transparancy works as expected, partially opaque pixels let the background partially show through, which is nice.

The NSButtons are borderless.

Unfortunately, when I click on the buttons, the background turns white, instead of transparant.

I'm not sure how to fix this. If I were to do this without advice, I'd simply override the drawing methods and draw the image as it is supposed to be drawn. But that doesn't seem right to me, surely there is an easier way?

--
http://elfdata.com/plugin/

What does our work achieve, if it's not making the world a happier place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our lives?



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.