Pergunta

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?

Foi útil?

Solução

Try this:

var defaults = NSUserDefaults.StandardUserDefaults;
defaults.SetBool (true, "WebKitDeveloperExtras");
defaults.Synchronize();
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top