Re: Opening an http:// URL in the user's default web browser?
Re: Opening an http:// URL in the user's default web browser?
- Subject: Re: Opening an http:// URL in the user's default web browser?
- From: Chris Boot <email@hidden>
- Date: Mon, 27 Aug 2001 21:12:15 +0200
Hi,
>
> I'm trying to open an http:// URL in the user's default web browser. How
>
> would I go about this in Cocoa?
>
>
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.
>
yahoo.com/"]]
>
>
is working for me. Are you sure your Internet prefs are set right? Also
>
the slash on the end of the URL is important.
That's almost exactly the code I'm using, except I'm getting my URL from a
dictionary (yes, the string is correct). So, it must be my Internet prefs
that are screwed up, and thanks to Mac OS X, I can't change them very
easily.
Anyway, thanks for helping me get to the root of my problem.
--
Chris Boot
email@hidden
"use the source, luke." (obi-wan gnuobi)