w00t! I’ve found example code that uses not-yet-documented view type:
- Set XIB’s deployment target to 10.10
- Embed your view in
NSVisualEffectView
- In Interface Builder’s settings for the view set appearance to “Vibrant Light/Dark”. There are other options, like blending “Behind Window” or “Within Window” (the latter requires layers).
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.