0
我遇到了一個問題,我的應用程序在我開始從xcode運行時會失敗。我正在嘗試構建一個具有WebView的Mac OS X應用程序。WebView OSX Xcode項目在啓動問題上加載URL
我通過AppDelegate文件將webview連接到webview。當我嘗試測試我的應用程序時,爲什麼它會一直崩潰?
這是我的錯誤: 「線程1:方案獲得SignalL 」SIGABRT「」
這是我有:
@interface WebViewExampleAppDelegate : NSObject {
NSWindow *window;
IBOutlet WebView *webView;
}
@property (assign) IBOutlet NSWindow *window;
@property (nonatomic, retain) IBOutlet WebView *webView;
@end
@implementation WebViewExampleAppDelegate
@synthesize window;
@synthesize webView;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
}
- (void)awakeFromNib {
NSString *resourcesPath = [[NSBundle mainBundle] resourcePath];
NSString *htmlPath = [resourcesPath stringByAppendingString:@"/htdocs/index.html"];
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];
}
它會給你這個錯誤? – user1118321