From 7d02ae916a9984efb619eac279b4d8e12db0b678 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 27 May 2014 23:52:35 +0100 Subject: make launch_url core operation use nsurl --- cocoa/gui.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cocoa') diff --git a/cocoa/gui.m b/cocoa/gui.m index 9ba614475..1cb19a756 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -253,9 +253,10 @@ static void gui_create_form_select_menu(struct browser_window *bw, [menu release]; } -static void gui_launch_url(const char *url) +static nserror gui_launch_url(nsurl *url) { - [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: [NSString stringWithUTF8String: url]]]; + [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: [NSString stringWithUTF8String: nsurl_access(url)]]]; + return NSERROR_OK; } struct ssl_cert_info; -- cgit v1.2.3