I’m trying to use the WebBrowser on Mac to show simple html help files, but I can’t get anything to show. The URL given (and I’ve checked that it is correct) is the full path to the html file prepended with “file://”. This is on Mac OS X 10.6.7.
Yeah, does seem so. However now I’m riddled with another problem: When I run in Xcode, the WebBrowserComponent always brings up the bundled help files, but when I’ve deployed the application, sometimes it doesn’t. And sometime it does. Anyone seen anything like this ?
Edit: When it doesn’t work, I use Finder to “Show Package Contents”. Then I open the application again, and then it works! This is NUTS!
Bear in mind that Apple do some dodgy stuff inside their modules. I once spent 2 days wondering why I couldn’t get Quicktime to work inside a browser plugin before I figured out that Apple had deliberately crippled it to prevent it working in Firefox…
Thanks guys, although what is looks like is that the WebView object simply doesn’t exist at the times when it doesn’t work. I.e. right-clicking in the component doesn’t yield the “Reload” popup menu. What could possibly make it not instigate the WebView ?
Thanks! Indeed. The url given to the component was within the initialization code, so sometimes it mustered it, sometimes not. Now I postpone that via a message, along with the instantiation of the webbrowsercomponent, and that seems to work!
In that case it is very strange. I had seen this on Windows and Macintosh more than a year back. It looked like ActiveXComponent wasn’t getting initialized if the parent view was not visible and on Mac it looked like an issue with WebView failing to initialize.