• 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
Re: WebView novice question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebView novice question


  • Subject: Re: WebView novice question
  • From: Justin Anderson <email@hidden>
  • Date: Wed, 26 Oct 2005 21:17:36 -0400

I believe you can turn off that contextual menu entirely by giving your WebView a WebUIDelegate that implements - webView:contextMenuItemsForElement:defaultMenuItems: which always returns an empty NSArray.

See: <http://developer.apple.com/documentation/Cocoa/Conceptual/ DisplayWebContent/Concepts/WebKitDesign.html#//apple_ref/doc/uid/ 20002024-128170>

Justin Anderson
http://www.tensaimac.com/

On Oct 26, 2005, at 7:04 PM, John Stiles wrote:

Anyway, here's the real question--if you right click in my web view, there's only one option displayed in the menu: "Reload." If you choose this reload option, the web view contents simply vanish. Doh!

Is the "loadData" method going to end up making a lot of extra work for me? Should I just blat a file to the temp directory and point the web view at that?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: WebView novice question
      • From: John Stiles <email@hidden>
References: 
 >WebView novice question (From: John Stiles <email@hidden>)

  • Prev by Date: Cocoa window initially hidden in IB?
  • Next by Date: Are screensavers for OS X made in Cocoa or Java?
  • Previous by thread: WebView novice question
  • Next by thread: Re: WebView novice question
  • Index(es):
    • Date
    • Thread