Re: Why no transparent window?
Re: Why no transparent window?
- Subject: Re: Why no transparent window?
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 24 Sep 2001 07:20:22 +0100
If I understand you correctly, what you want is -
(void)setAlphaValue:(float)windowAlpha where windowAlpha is a value from
0 to 1.
-- Finlay
On Monday, September 24, 2001, at 09:13 am, j o a r wrote:
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev