Re: How to get a fully transparent hit-testable window?
Re: How to get a fully transparent hit-testable window?
- Subject: Re: How to get a fully transparent hit-testable window?
- From: Michael Ash <email@hidden>
- Date: Mon, 29 Jun 2009 14:23:14 -0400
On Fri, Jun 26, 2009 at 4:14 PM, Pranav Goel<email@hidden> wrote:
> Hi
> I am writing a Cocoa application which has a WebView in a NSWindow. I want to be able to put this window onscreen and have it be completely transparent i.e. nothing should be drawn on the screen. But I still want the WebView to respond to mouse input when a mouse action happens within its window rect. Is there a way to do this?
>
> I tried setting Opacity on the window to 0, I don't see anything on the screen which is great. But the window (and the WebView) don't respond to input anymore, apparently a NSWindow becomes transparent to mouse input for opacity values less than 0.05 or so.
[window setIgnoresMouseEvents:NO];
Mike
_______________________________________________
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