Re: How make image nonvibrant in Yosemite NSVisualEffectView
Re: How make image nonvibrant in Yosemite NSVisualEffectView
- Subject: Re: How make image nonvibrant in Yosemite NSVisualEffectView
- From: David Duncan <email@hidden>
- Date: Thu, 30 Oct 2014 13:04:09 -0700
> On Oct 30, 2014, at 12:00 PM, Bill Cheeseman <email@hidden> wrote:
>
> 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.
The view hierarchy should look something like this:
<Blur>
<Vibrant Background>
<Icon View>
<Icon View>
<Icon View>...
Then you just move your single vibrant background as necessary to be behind the right icon view. It sounds like you are putting the icon view inside the vibrant background.
--
David Duncan
_______________________________________________
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