How to get a fully transparent hit-testable window?
How to get a fully transparent hit-testable window?
- Subject: How to get a fully transparent hit-testable window?
- From: Pranav Goel <email@hidden>
- Date: Fri, 26 Jun 2009 20:14:03 +0000
- Thread-topic: How to get a fully transparent hit-testable window?
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.
Thanks,
Pranav
_______________________________________________
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