WebView: Open new windows in default browser
WebView: Open new windows in default browser
- Subject: WebView: Open new windows in default browser
- From: Benjamin Dobson <email@hidden>
- Date: Wed, 22 Oct 2008 18:37:28 +0100
Hi all,
I've been trying to get a WebView to open in the user's default
browser. In fact, I've succeeded, but it's rather clunky, and I'm
wondering if there's a better way.
At the moment, this is what I do:
My main WebView's method for opening windows is controlled via
UIDelegate. These requests are passed on to a second WebView, which
intercepts all requests via policyDelegate. It then passes them on to
the default browser with the openURL: method in NSWorkspace.
This works fine. If there is a better way you know of, please tell me,
but if not, don't worry.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden