PDA

View Full Version : Transparent Quartz File




Blakeasd
Apr 2, 2011, 12:34 PM
Hello,
I created a file in quartz composer and I put it in a standalone application. I need the user to be able to see the desktop behind it. I tried setting the clear color opacity in IB to 0% however you just see the window behind it. I need the application window to be clear as well as the Quartz Composer so the things happing in the Quartz file appear to be happening over whatever is under the window.
Thanks



xStep
Apr 2, 2011, 04:20 PM
I suspect you'll want to play with the following three values. Interestingly, when I click on a clear area, I select the window behind it.

[self.window setBackgroundColor: [NSColor clearColor]];
[self.window setAlphaValue: 0.99];
[self.window setOpaque: NO];

Blakeasd
Apr 2, 2011, 04:52 PM
Thanks,
I used your code for the window and then I set the Quartz Files clear color opacity to 0%
It Works