• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading an URL in Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Loading an URL in Safari (From: Dimitri Bouniol <email@hidden>)

  • Prev by Date: [SOLVED]Re: Loading an URL in Safari
  • Next by Date: Re: Loading an URL in Safari
  • Previous by thread: [SOLVED]Re: Loading an URL in Safari
  • Next by thread: Re: Loading an URL in Safari
  • Index(es):
    • Date
    • Thread