From: <ho...@us...> - 2009-04-03 10:31:57
|
Revision: 14925 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=14925&view=rev Author: hofman Date: 2009-04-03 10:31:42 +0000 (Fri, 03 Apr 2009) Log Message: ----------- Open new webview requests for the web group in the default browser, e.g as a result of javascript Modified Paths: -------------- trunk/bibdesk/BDSKWebGroupViewController.m Modified: trunk/bibdesk/BDSKWebGroupViewController.m =================================================================== --- trunk/bibdesk/BDSKWebGroupViewController.m 2009-04-03 04:59:22 UTC (rev 14924) +++ trunk/bibdesk/BDSKWebGroupViewController.m 2009-04-03 10:31:42 UTC (rev 14925) @@ -675,6 +675,11 @@ return menuItems; } +- (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request { + [[NSWorkspace sharedWorkspace] openURL:[request URL]]; + return nil; +} + #pragma mark WebEditingDelegate protocol // this is needed because WebView uses the document's undo manager by default, rather than the one from the window. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |