Page 1 of 1

Disable browser on OSX (standard rendering)

PostPosted: Mon Feb 17, 2020 10:22 am
by joaoneves
Hi,

I'm using standard rendering and I need to disable the browser (ie. prevent keyboard/mouse input). On windows I can call EnableWindow on the browser child window, but on OSX I don't know how and what to do.
Any suggestions?

Re: Disable browser on OSX (standard rendering)

PostPosted: Mon Feb 17, 2020 10:37 am
by magreenblatt
You can try setting acceptsFirstMouse and acceptsTouchEvents to NO on the top-level NSView.

Re: Disable browser on OSX (standard rendering)

PostPosted: Mon Feb 17, 2020 1:29 pm
by joaoneves
Tried your suggestion but it does not work

Re: Disable browser on OSX (standard rendering)

PostPosted: Mon Feb 17, 2020 1:42 pm
by magreenblatt
You can also try overlaying a transparent NSView on top of the browser NSView that does not forward events to the underlying NSView.