How to force "plain" shadow on NSWindow that has some transparent regions
How to force "plain" shadow on NSWindow that has some transparent regions
- Subject: How to force "plain" shadow on NSWindow that has some transparent regions
- From: email@hidden
- Date: Tue, 12 Feb 2008 21:21:33 -0600 (CST)
- Importance: Normal
I have a NSWindow that's set to [window setOpaque:NO].
Most of it draws like a normal window, no transparency, but a section in
the middle does have a 50% transparent region that displays some text. The
problem is that this text content is computed as part of the windows
shadow. This makes the text hard to read and also causes odd halo drawing
bugs when the window is resized.
I'm looking for a way to tell the window to just compute normal "square"
shadows, and not take any interior transparent regions into consideration
when computing this shadow. Does anyone know how to do this? Basically I
want the exact same effect that Terminal.app has in leopard when dealing
with transparent regions.
Does anyone know how that's done?
Thanks,
Jesse
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden