Recent content by retrotron

  1. retrotron

    Call Cocoa method from within HTML content in WebView?

    How exactly would I go about doing that?
  2. retrotron

    Call Cocoa method from within HTML content in WebView?

    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...
  3. retrotron

    WebKit: load HTML content as string?

    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...
  4. retrotron

    WebKit: load HTML content as string?

    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...
  5. retrotron

    FilesToMacroExpand not working?

    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...
  6. retrotron

    WebKit: load HTML content as string?

    Heh heh, yeah, I checked the doc and thought it said the loadHTMLString method takes the String as the URL (easier than using an NSURL object).
  7. retrotron

    NSTextView: two column presentation

    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...
  8. retrotron

    Changing the bgcolor of a Javascript window?

    Check this out: http://tutorials.flashvacuum.com/article.php?article=15
  9. retrotron

    /bin/bash: bad interpreter: Permission denied

    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?
  10. retrotron

    WebKit: load HTML content as string?

    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>"];
  11. retrotron

    /bin/bash: bad interpreter: Permission denied

    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 --...
  12. retrotron

    PHP and MySQL problems as of 10.3.9

    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...
  13. retrotron

    Burning DVD always gives me an error

    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.
Back
Top