Is there a way to use the WebKit web inspector from a Cocoa WebView object?

后端 未结 5 1019
时光取名叫无心
时光取名叫无心 2020-12-04 09:40

I would like to use the WebKit web inspector in a custom browser based on WebKit on OS X. Is it possible to use the web inspector on a webview object? If so, how?

5条回答
  •  情书的邮戳
    2020-12-04 09:57

    I tried doing so, but couldn't see the web inspector.

    Isn't it the same as [[NSUserDefaults standarduserDefaults] registerDefaults:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:@"WebKitDeveloperExtras"]]?

提交回复
热议问题