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

Opening an http:// URL in the user's default web browser?


  • Subject: Opening an http:// URL in the user's default web browser?
  • From: Chris Boot <email@hidden>
  • Date: Mon, 27 Aug 2001 20:37:01 +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? I've tried NSWorkspace's openURL: method,
but that doesn't work and complains that LaunchServices gave it an error
(application not found). LaunchServices apparently only opens file:///
URLs, judging by the header. So that leaves me with InternetConfig, which
is part of HIToolbox.framework, in Carbon.framework. I don't want to have
to include that whole framework, so I'm stumped. Is there any way of
opening such a URL in Cocoa?

Thanks,

--
Chris Boot
email@hidden

"Modem error handling really su~c%dk,s.^D^D&x@R*cCKo#?CB,*o#?C!!b %o#?
NO CARRIER


  • Follow-Ups:
    • Re: Opening an http:// URL in the user's default web browser?
      • From: Enigmarelle Development <email@hidden>
    • Re: Opening an http:// URL in the user's default web browser?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Testing if a folder is a bundle
  • Next by Date: Re: NSTableView
  • Previous by thread: Re: Putting a newline in a NSTextField
  • Next by thread: Re: Opening an http:// URL in the user's default web browser?
  • Index(es):
    • Date
    • Thread