• 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
[Cocoa-Java] WebView and HTML string how to ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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
  • Follow-Ups:
    • Re: [Cocoa-Java] WebView and HTML string how to ?
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Problems subclassing NSTableView and NSOutlineView
  • Next by Date: Strange sdef behaviour was AppleScript and plug-ins
  • Previous by thread: [Moderator] End Of Thread (was Re: Monitors for Intel transition kit)
  • Next by thread: Re: [Cocoa-Java] WebView and HTML string how to ?
  • Index(es):
    • Date
    • Thread