I adapted Apple's RoundTransparentWindow sample project to create a NSWindow
and NSView
which I use to have a transparent window (obviously the children of the NSView
are visible, just not the window or the view's background).
I would like to add a CAEmitterLayer
for particle effects to this window, but as soon as I set the view to layer backed (which seems to be a requirement of CAEmitterLayer
) with
self.view.wantsLayer = true
the view loses its transparency and becomes opaque.
How can I have a transparent, layer-backed NSWindow
? Or, is it possible to use CAEmitterLayer
in some other way on a transparent window?