Transparent white NSView
Transparent white NSView
- Subject: Transparent white NSView
- From: Thomas Engelmeier <email@hidden>
- Date: Wed, 14 Jun 2006 11:23:54 +0200
Hi,
I am implementing an assistant - type application.
All Apple variants (Network Diagnostics, Mail Account setup, Network
Setup Assistant) have a transparent white view above some background
artwork - which I try to mimick with a custom NSView. Except my code
produces an dirty gray background instead of an neat lighter bg.
I'm running out of ideas how to cure it. My code looks like:
- (BOOL) isOpaque
{
return NO;
}
- (void) drawRect:(NSRect) frame
{
NSRect tRect=[self bounds];
[[NSColor controlDarkShadowColor] set];
NSFrameRect(tRect);
tRect.origin=NSMakePoint(1,1);
tRect.size.width-=2;
tRect.size.height-=2;
[[NSColor colorWithDeviceWhite:1.0 alpha:.3] set];
NSRectFill(tRect );
// doesn't help, either:
// NSRectFillUsingOperation(tRect, NSCompositePlusLighter );
}
TIA,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden