[Cocoa-Java] WebView and HTML string how to ?
[Cocoa-Java] WebView and HTML string how to ?
- Subject: [Cocoa-Java] WebView and HTML string how to ?
- From: Yvon Thoraval <email@hidden>
- Date: Thu, 7 Jul 2005 09:48:18 +0200
Hey all,
i'm able to build and run a WebView from a Cocoa-Java app using an
external URL by :
<code>
NSSelector selector=new NSSelector("takeStringURLFrom",new Class
[]{NSTextField.class});
NSApplication.sharedApplication().sendActionToTargetFromSender
(selector,browserView,urlField);
</code>
but, in my case, i don't have any URL nor file because the html
string is generated "on the fly" fram database dats.
someone said i have to use :
[[myWebView mainFrame] loadHTMLString:myHTMLString baseURL:[NSURL
fileURLWithPath:@"/path/to/base"];
but, at present time, i'm unable to transalate Obj-C code into java one.
did someone successfully load html string into a webview ???
Yvon
_______________________________________________
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