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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com