I have an NSWindow
set to kCGDesktopWindowLevel
so it sits on the desktop behind the desktop icons (like a wallpaper).
I'm trying to cross-fade two views inside that window using an NSViewAnimation
.
The problem is that the animation flickers a lot. I tracked it down to the window level.
self.window.level = kCGDesktopWindowLevel;
If I use the default window level the animation runs smoothly just as expected.
Any suggestions what could be the reason? Is there anything different how windows are drawn at that level?
Edit:
Could this be a RunLoop issue? Background windows don't receive user input. However, my app also has another normal window that can receive input.