In Yosemite sidebars have a semitransparent "vibrant" background. How can I create a view like that in 10.10/Xcode 6?
Can I give any view such background? I've found that NSOutlineView
will default to such background when you give it "Source list" highlight style, but the sidebar in the Calendar.app doesn't appear to be an NSOutlineView, so I wonder if there's a generic solution for this.
w00t! I've found example code that uses not-yet-documented view type:
NSVisualEffectView
There's also NSView
method allowsVibrancy
that you can override to return YES
, but for reasons I don't yet understand this didn't enable vibrancy in my case.