Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blakeasd

macrumors 6502a
Original poster
Dec 29, 2009
643
0
Hello,

I am looking for a way to toggle whether the oncontextmenu event by non-chrome Javascript can be set for a specific WebKit WebView in Cocoa.

In Firefox, you can go to about:config and set:

dom.event.contentmenu.enabled 's value to true or false.

I am looking for a way to do this in a subclass of a WebView inside my Cocoa app. I've looked through Documentation and several pages of Google. To my dismay, I haven't found anything that can help me out.

If anyone knows of a method to do this and is willing to share it, that would be great!

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.