0
それは投げるエラーを保ちます:メッセージの受信者タイプのwebFrameは、 "[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]]行の前方宣言です。 ; "CocoaのWebviewはロードされません
私の.hファイル
@interface AttendanceWizardAppDelegate : NSObject <NSApplicationDelegate>
{
@private WebView *webView;
}
@property (weak) IBOutlet WebView *webView;
@property (assign) IBOutlet NSWindow *window;
@end
マイ.mファイル
#import "AttendanceWizardAppDelegate.h"
@implementation AttendanceWizardAppDelegate
@synthesize Username = _Username;
@synthesize Password = _Password;
@synthesize webView = _webView;
@synthesize webber = _webber;
@synthesize window = _window;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSString *urlStr = @"www.google.com";
[[webView mainFrame ] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]];
}
@end
輸入がありました。 – Kevrone
コンパイル時または実行時にエラーがスローされますか? – Guillaume
私はWebkit.hでタイプミスをしました – Kevrone