I am using a WebView to store a locally saved web page, which is in the /Resources of my XCode project. I can point to the file with an absolute pointer, but I want to point to the file relatively so it will work on any system. Below is how the file is being loaded:
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString"file://localhost/Users/turbolag/Desktop/Branches/Trunk/lvg.html"]]];
Thanks for any advice.
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString"file://localhost/Users/turbolag/Desktop/Branches/Trunk/lvg.html"]]];
Thanks for any advice.