• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get a fully transparent hit-testable window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to get a fully transparent hit-testable window? (From: Pranav Goel <email@hidden>)

  • Prev by Date: Re: External Drives Questions
  • Next by Date: Finding objects in a NSDocument
  • Previous by thread: How to get a fully transparent hit-testable window?
  • Next by thread: Synchronization across plug-ins loaded by different processes
  • Index(es):
    • Date
    • Thread