• 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: Opening an http:// URL in the user's default web browser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Enigmarelle Development <email@hidden>
  • Date: Mon, 27 Aug 2001 14:58:12 -0400

On Monday, August 27, 2001, at 02:37 PM, Chris Boot wrote:

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.

-john


  • Follow-Ups:
    • Re: Opening an http:// URL in the user's default web browser?
      • From: Chris Boot <email@hidden>
References: 
 >Opening an http:// URL in the user's default web browser? (From: Chris Boot <email@hidden>)

  • Prev by Date: Re: NSTableView
  • Next by Date: Re: NSTableView
  • Previous by thread: Re: Opening an http:// URL in the user's default web browser?
  • Next by thread: Re: Opening an http:// URL in the user's default web browser?
  • Index(es):
    • Date
    • Thread