Objective c Xcode(为mac os创建应用程序)。WebView没有';t下载页面

Objective c Xcode(为mac os创建应用程序)。WebView没有';t下载页面,objective-c,xcode,macos,cocoa,webview,Objective C,Xcode,Macos,Cocoa,Webview,库文件(AppDelegate.h): 在调用loadRequest之前,放入NSLog(@“View:%@,Frame:%@”,wview,[wview mainFrame])并让我们知道它打印的内容。它不起作用(((项目已编译,但站点未加载)我重复,放入log语句并查看它告诉您的内容。“类型名称需要说明符或限定符”“预期参数说明符” #import <Cocoa/Cocoa.h> #import <WebKit/WebKit.h> @interface AppDel

库文件(AppDelegate.h):


在调用
loadRequest
之前,放入
NSLog(@“View:%@,Frame:%@”,wview,[wview mainFrame])并让我们知道它打印的内容。它不起作用(((项目已编译,但站点未加载)我重复,放入log语句并查看它告诉您的内容。“类型名称需要说明符或限定符”“预期参数说明符”
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>

@interface AppDelegate : NSObject <NSApplicationDelegate>
{

    @private
   __unsafe_unretained NSWindow *window;
   __unsafe_unretained WebView *wview;


}


@property (assign) IBOutlet NSWindow *window;
@property (assign) IBOutlet WebView *wview;



@end
#import "AppDelegate.h"

@implementation AppDelegate
@synthesize window;
@synthesize wview;


- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{

    [[wview mainFrame]loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: @"http://vk.com"]]];

}

- (IBAction)wview:(id)sender {


    [[wview mainFrame]loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString:@"http://vk.com"]]];

}

@end