Halo Around Window
Halo Around Window
- Subject: Halo Around Window
- From: Stefan Schüßler <email@hidden>
- Date: Thu, 2 Jun 2005 16:13:37 +0200
I have encountered another halo. When drawing a shape (NSBezierPath)
into a transparent window (NSBorderlessWindowMask,
backgroundColor=clearColor) there is some kind of halo between the
shape and the (window's) shadow.
The image shows the window with shadow turned on and off.
The path is filled with "lightGrayColor":
- (void)drawRect:(NSRect)rect
{
[[NSColor lightGrayColor] set];
[[NSBezierPath bezierPathWithOvalInRect:NSMakeRect(0,0,30,30)]
fill];
}
Using the path as a clipping path gives the same result. Invalidating
the window's shadow didn't help either.
Everything works fine with a custom shadow (NSShadow) but I'd like to
have NSWindow's shadow working.
Any ideas?
Stefan
_______________________________________________
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