Why no transparent window?
Why no transparent window?
- Subject: Why no transparent window?
- From: j o a r <email@hidden>
- Date: Mon, 24 Sep 2001 01:13:04 -0700
Hello,
If I open a window like this:
myWindow = [[NSWindow alloc]
initWithContentRect:NSMakeRect(100.0,100.0,500.0,500.0)
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];
// This window should be transparent
NSLog(@"isOpaque: %d", [myWindow isOpaque]);
[myWindow setOpaque:NO];
NSLog(@"isOpaque: %d", [myWindow isOpaque]);
[myWindow makeKeyAndOrderFront:self];
The window still shows up with the striped background - does any one
know why?
The log output indicates that the "setOpaque" call was effective - ie. 1
before and 0 after.
Regards,
j o a r