• 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
WebView w/ Java Plugin in NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebView w/ Java Plugin in NSTabView


  • Subject: WebView w/ Java Plugin in NSTabView
  • From: Chris Backas <email@hidden>
  • Date: Thu, 2 Dec 2010 09:19:21 -0500

Hello all,

I have an application which needs to run multiple instances of
WebView, each will be running a Java applet embedded in the page that
it loads. For the sake of a sane UI, each WebView is contained in its
own tab item in an NSTabView.

This is mostly working, but I'm having two problems that I haven't
found a solution for, and was hoping somebody could shed some light on:
Notes:
	* Yes, I am using setHostWindow: as the documentation indicates is
required.
	* I am conducting all WebView interaction on the main thread.
	* The Applet requires Java 6. On Leopard this means using the Out-of-
Process Plugin as the host application is 32bit.
	* I only need this to work on EITHER Leopard OR Snow Leopard. A
solution for one of the problems is enough ;)
	* On both OSes, I am using all of the latest updates.

Problem #1 Occurs on Leopard: If the tab containing the WebView is not
the selected tab when the WebView gets to the page containing the
Applet, the Applet is never launched. All the rest of the WebView
navigation works until that point, including the execution of
Javascript. If you view the tab the entire time, the Applet will
launch. Once launched, the Applet functions just fine and switching
tabs is NOT a problem.

Problem #2 Occurs on Snow Leopard: There a no problems at all here
with the Applet launching when the Tab is not visible.  However, if I
view the tab while the Java applet is running and then select a
different tab, the Java applet is sent a Shutdown message by the
WebView.  I need that NOT to happen, and I suspect it's happening
because the WebView is being removed from the view hierarchy when the
tab is removed. But after looking through the WebKit documentation, I
didn't see a preference, setting, or delegate method that seemed
promising to change the behavior.


Anyone have any insights into either problem?  Thanks in advance,

-Chris Backas



CONFIDENTIALITY NOTICE: This email (and any related attachments) contains information from InfoPlus (a service of Bristol Capital, Inc.).  It is intended only for the addressee and may contain information that is confidential and/or otherwise exempt from disclosure under applicable law. If you are not the intended recipient or are acting as agent for the intended recipient, any use or disclosure of this communication is prohibited. If you have received this communication in error, please notify me immediately to arrange for the appropriate method of returning or disposing of the communication. If our respective Companies have confidentiality provisions in effect, this email and the materials contained herein are deemed CONFIDENTIAL and should be treated accordingly unless expressly provided otherwise.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: [iOS] setting table style for root view controller of a navigation controller
  • Next by Date: Re: Problem Binding to UserDefaults
  • Previous by thread: Re: Obscuring an NSString
  • Next by thread: Calculating Scale Factor touchesMoved event.
  • Index(es):
    • Date
    • Thread