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.
I figured out the problem. The WebView is an IBOutlet. I was doing the method call that was giving me problems before -awakeFromNib. Moved that one line to -awakeFromNib and it’s sorted now. Thanks for the input. +1 to my list of newbie posts.