• 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 URLs (Clarification)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening URLs (Clarification)


  • Subject: Re: Opening URLs (Clarification)
  • From: Richard Schreyer <email@hidden>
  • Date: Thu, 25 Oct 2001 08:48:07 -0700

Ah, I didn't make this clear enough. I meant that when a user clicks on a whatever://foo.com link, I want *my* software to respond, and open the URL (this is a custom protocol), just like omniweb does for http:// and Mail does for mailto:.

Richard Schreyer


On Thursday, October 25, 2001, at 06:21 AM, Stiphane Sudre wrote:

On jeudi, octobre 25, 2001, at 09:57 , Richard Schreyer wrote:

Can someone point me to some documentation on how to open URLs in a cocoa application?

I've done some hunting around in the OmniWeb and Mail info.plist files, and saw the CFURL entries there, but I can't find any documentation on where to go from there.

To open it and view it in a Browser (or another software) ?

It's both NSURL and NSWorkspace in this case:

[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:url_]];


  • Follow-Ups:
    • Re: Opening URLs (Clarification)
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: Opening URLs (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Hiding a view
  • Next by Date: Re: Class(es) for reading dBASE IV?
  • Previous by thread: Re: Opening URLs
  • Next by thread: Re: Opening URLs (Clarification)
  • Index(es):
    • Date
    • Thread