• 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
How to get a fully transparent hit-testable window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to get a fully transparent hit-testable window?
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: Hiding a running application
  • Next by Date: Synchronization across plug-ins loaded by different processes
  • Previous by thread: Re: Force NSTextField to update (and transform)
  • Next by thread: Re: How to get a fully transparent hit-testable window?
  • Index(es):
    • Date
    • Thread