On Fri, Jun 26, 2009 at 4:14 PM, Pranav Goel<[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to