Is there any way to invoke a Cocoa method from some HTML content in a WebView? Suppose I have an anchor/link in an HTML page inside a WebView. When the user clicks that link, is there any way for that anchor/link to invoke a Cocoa method (e.g. tell the WebView to update the HTML content and...
Hmmm...so normally the browser chooses the page's current URL as the base URL to complete relative URLs, but in this case there is no current URL since the HTML content is loaded not from a URL but a string, so here you provide the base URL. Is that how this is working?
<edit>Yep, I just...
Just to clarify my response above. Yes, the method loadHTMLString:baseURL: works to load HTML code and have it rendered in the WebView.
My cryptic comment above meant to say that I assumed from the doc that the String in question was the filename of the page (with baseURL setting the base...
I've never been able to get this work. I create a custom project template in xcode (or back with PB), and then I edit the TemplateInfo.plist file. In the 'FilesToMacroExpand' node, I include the names of the files which should be preprocessed and have their «MACRO» stuff expanded into the...
I'd like to present some text in two columns in a TextView. Something like:
-----------------------------------------
Text here | Text here
Text here | Text here
Text here | Text here
-----------------------------------------
Can anybody give me a...
Shoot, I didn't get notified of this response, I just saw it. I didn't try that, but I reinstalled OS 10 from scratch and all my permission problems (MySQL, PHP sessions, and shell scripts) are working now. But what is the disk utility permission fix?
Is there any way to pass some HTML content as a stream to a WebKit view to be rendered? Something like this:
[[webView mainFrame] initWithHTML: @"<html>Hello world!</html>"];
I'm going crazy. Every since I upgraded to 10.3.9, i get weird permission errors getting in the way of everything. First MySQL suddenly won't start up, giving me odd 'permission denied' errors. Then PHP sessions won't start up. And now a simple bash script won't run. From this script --...
After I upgraded to 10.3.9, I suddenly have problems with PHP and MySQL. Any of my PHP scripts using sessions display this error:
Warning: session_start(): open(/tmp/sess_f9967256b0a89b27d9405048fa1f846a, O_RDWR) failed: Permission denied (13) in...
Weird that it works for you but not for me. Ugh. Anyways, I tried it with an Apple DVD-R (2x) and it worked, so I guess I'm back in business. Thanks for the help all.