문제

Trying to figure out how to show the webkit console or inspector from a MonoMac application. It looks like it can be done in Objective-C by setting WebKitDeveloperExtras.

[USER_DEFAULTS registerDefaults:[NSDictionary dictionaryWithObject: 
[NSNumber numberWithBool:YES] forKey:@"WebKitDeveloperExtras"]];

How can I set WebDeveloperExtras in MonoMac.WebKit.WebView?

도움이 되었습니까?

해결책

Try this:

var defaults = NSUserDefaults.StandardUserDefaults;
defaults.SetBool (true, "WebKitDeveloperExtras");
defaults.Synchronize();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top