Re: Which NSCompositingOperation the Dock uses for highlight the icons?
Re: Which NSCompositingOperation the Dock uses for highlight the icons?
- Subject: Re: Which NSCompositingOperation the Dock uses for highlight the icons?
- From: John Randolph <email@hidden>
- Date: Thu, 1 Apr 2004 15:34:13 -0800
On Apr 1, 2004, at 2:17 PM, Giovanni Donelli wrote:
Hello Gurus,
click on any icon of your dock.
As you can see the icon gets darker upon your click. I have tried all
the possible NSCompositingOperation but I couldn't moke that behaviour
for my images.
Anyone has suggestion in order to get this effect?
I try these kinds of things out using the "Tinted Image" sample project:
http://developer.apple.com/samplecode/Tinted_Image/Tinted_Image.html
I played around with it, and compositing black with 50% alpha over an
icon with the "Source Atop" mode looks like the right combination.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.