• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How make image nonvibrant in Yosemite NSVisualEffectView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How make image nonvibrant in Yosemite NSVisualEffectView
      • From: David Duncan <email@hidden>
    • Re: How make image nonvibrant in Yosemite NSVisualEffectView
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Can an use introspection to determine if its a production app from the App Store?
  • Next by Date: Re: NSSplitView divider tracking-area
  • Previous by thread: AppDefined events getting lost; 10.10 only
  • Next by thread: Re: How make image nonvibrant in Yosemite NSVisualEffectView
  • Index(es):
    • Date
    • Thread