Re: Tell Safari to load URL
Re: Tell Safari to load URL
- Subject: Re: Tell Safari to load URL
- From: David Jeffery <email@hidden>
- Date: Sun, 2 Jan 2005 17:11:59 -0800
One more thing is worth noting:
c) Even if you think you really need Safari to load your particular
URL, your users who prefer some other browser will resent you trying to
enforce it! :-)
On Jan 2, 2005, at 07:06, Gregory Weston wrote:
Simon alias Trax wrote:
The title says it all...
I want to tell Safari to go to a particular URL.
If Safari is not opened, then my app will tell the Finder to open it,
and
then go to the specified URL.
As joar noted, the preferred technique is to send openURL: to the
default NSWorkspace. A couple of things worth noting:
a) This isn't going to go to Safari. It's going to go to whatever app
is configured to handle URLs of the passed scheme on the user's
machine. For HTTP that's Safari by default, but if you _need_ Safari
this isn't reliable.
b) Your app doesn't need to make any effort to launch the app.
G
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to 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