First, this is a Cocoa question, not one about the operation of the Xcode integrated development environment.
Second, am I missing something? Aside from where you should be doing this in the view's life cycle, it wouldn't work anyway.
On 28 Jul 2012, at 3:16 PM, Tom Miller <
email@hidden> wrote:
- (void)awakeFromNib {
NSString *resourcesPath = [[NSBundle mainBundle] resourcePath];
This yields a path in the file system (e.g., /Applications/MyApp.app/Contents/Resources).
This yields the concatenation of the file system path and the URL string (e.g., /Applications/MyApp.app/Contents/
Resourceshttp://www.google.com).
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];
}
The URL passed into requestWithURL would be