How make image nonvibrant in Yosemite NSVisualEffectView
How make image nonvibrant in Yosemite NSVisualEffectView
- Subject: How make image nonvibrant in Yosemite NSVisualEffectView
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 30 Oct 2014 15:00:16 -0400
I am trying to make my application's window behave like the Application Switcher behaves in Yosemite (open Application Switcher by pressing Command-Tab).
There is one behavior I can't figure out. The Application Switcher's window background is vibrant, and so is the darker rectangle that marks the application to be made active, but the icon images are not vibrant.
In my application, I can make the window background and the darker selection rectangle vibrant, but the icon image is vibrant, too. That is, blurred images and colors behind my window show through the icon image, as well as showing through the window background and the selection rectangle.
From the limited discussion in the AppKit Release Note and the WWWDC 220 video, I gather that I could accomplish this by setting the NSVisualEffectView's maskImage property to encompass everything in my window except the icon image, but I have no idea how to create an inverse mask image.
If you're curious about what kind of application would do this, I am updating my Applidude application for Yosemite: <http://pfiddlesoft.com/pfiddles>.
--
Bill Cheeseman - 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