I'm working with a WebView. If I place this call in my -awakeFromNib
:
[myWebView setMainFrameURL:@"http://www.google.com"];
I get the behavior I want. Google's homepage displays in my WebView. But, I need to set the main frame's URL in another method from a mutable array containing NSStrings.
This method call
[myWebView setMainFrameURL:[mutableArrayContainingNSStrings objectAtIndex:0]];
does not update the WebView. Do I need to tell the WebView to reload? I tried -setNeedsDisplay:YES
and -reload
to no avail.