1

Okay so I have a web view that holds the chat bar div from Facebook.com. The web view itself is larger/taller than the bar because obviously it needs to be for when a chat box is opened. When a chat box isn't open though, that area of the web view is transparent. I need the transparent areas of the web view to ignore mouse events and send them to whatever is behind.

How should I go about this?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
fefwfefefwfwe
  • 1,505
  • 2
  • 11
  • 19

1 Answers1

2

Subclass the WebView and implement your own hitTest: method.

Kornel
  • 97,764
  • 37
  • 219
  • 309
  • This did it for me, with a static IB label on top of an NSView instance. I'm implementing a Photoshop-like panel of "layer" rows, each displaying a label with the layer name (the name is not editable in-place, though). I want to show a context menu (right-click), to edit, delete, etc. but the text label was getting in the way. Thanks! – Nicolas Miari Apr 15 '12 at 14:28