• 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: John Stiles <email@hidden>
  • Date: Thu, 27 Oct 2005 14:15:28 -0700

This seems to do the trick.
I think it's a little odd that I need to do this, but hey, it was only a few extra lines of code :)


On Oct 26, 2005, at 6:17 PM, Justin Anderson wrote:

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
References: 
 >WebView novice question (From: John Stiles <email@hidden>)
 >Re: WebView novice question (From: Justin Anderson <email@hidden>)

  • Prev by Date: Re: CGImageSourceCopyPropertiesAtIndex returns nil?
  • Next by Date: ANN: TOE - A Library for MIDI Programming
  • Previous by thread: Re: WebView novice question
  • Next by thread: Making the title of an NSBox editable?
  • Index(es):
    • Date
    • Thread