Re: Loading an URL in Safari
Re: Loading an URL in Safari
- Subject: Re: Loading an URL in Safari
- From: Tage Borg <email@hidden>
- Date: Wed, 23 Aug 2006 10:06:00 +0200
A quick search of the archives reveals the following message (amongst
others):
--8<-------
Well, to get Safari (or whatever the current user's default browser
is) to open a URL, you can do this:
NSURL *someUrl = [NSURL URLWithString:@"http://dan.parnell.name/"];
if ([[NSWorkspace sharedWorkspace] openURL:someURL])
NSLog(@"Opened successfully.");
else
NSLog(@"Failed to open URL.");
--8<-------
Thank Dan Parnell.
--Tage
On 2006-08-23, at 09:16, Dimitri Bouniol wrote:
How can I load an URL in Safari, or the default Web Browser, from a
button in cocoa?
--
Dimitri Bouniol
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Tage Borg
Project Management, SW Architecture, Design, Development
ph +46703967328 (GMT+1)
email@hidden
www.tbef.se
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden