Transparent Quartz File

Discussion in 'Mac Programming' started by Blakeasd, Apr 2, 2011.

  1. macrumors 6502a

    Joined:
    Dec 29, 2009
    #1
    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
     
  2. macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    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.

    Code:
    [self.window setBackgroundColor: [NSColor clearColor]];
    [self.window setAlphaValue: 0.99];
    [self.window setOpaque: NO];
    
     
  3. thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
    #3
    Thanks,
    I used your code for the window and then I set the Quartz Files clear color opacity to 0%
    It Works
     

Share This Page