Add a Contextual Menu to WebView

Posted by Woodster on Stack Overflow See other posts from Stack Overflow or by Woodster
Published on 2010-05-10T00:32:32Z Indexed on 2010/05/10 0:38 UTC
Read the original article Hit count: 732

Filed under:
|
|

An easy one, I think:

I want to add a contextual menu to a WebView.

In IB, I added a NSMenu to the NIB, connected it to the WebView's menu outlet, launched and expected to be able to control-click in the WebView and see the pop-up menu. The only item I saw on the contextual menu is "reload". I can do the same steps but connect the Menu to some other view and it works as expected.

Why doesn't the menu work the same when connect to the webview's menu outlet?

Thanks

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about webview