开发者

Cocoa webView to display a web page

I am trying to develop an export aperture plugin, I have designed some views/windows and everything runs smoothly, but trying to now add a webView on one of the window, and cannot make it to display the linked url (hard typed in the code).

Is webView not supported because I'm running it within aperture? anyone having problem with this?

I'm not getting any errors, and used the webView object in the simplest way as possible.

The code to load the web page on webView:

[[webView mainFrame] loadRequest:[NSURLRequest reques开发者_开发技巧tWithURL:[NSURL URLWithString:@"http://www.google.com"]]];


Make sure you hooked up the outlet to the web view in IB (assuming that the web view is in a nib). Many, many Cocoa programmers forget that.

If it's not in a nib, please edit your question to include the code you used to create it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜