• 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: Internet Protocol Helper Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet Protocol Helper Applications


  • Subject: Re: Internet Protocol Helper Applications
  • From: John Blackburn <email@hidden>
  • Date: Wed, 30 Oct 2002 17:47:17 -0800

Adding CFBundleURLTypes worked great: my app is launched when a url with my protocol is invoked in the browser.

But once your Cocoa application is launched, how do you retrieve the passed url?

In other words, if I click "foo://bar" in the browser, my application is launched (since it has registered "foo://"), but how does the application retrieve the "foo://bar"?

Thanks,
John Blackburn


Manfred Lippert wrote:

> Suppose a new protocol, for example "jamie", was created. What I want
> to do is create a cocoa application that is launched when the URL
> "jamie:some_arguments" is called.

This can be done with the right entries (CFBundleURLTypes ...) in the
info.plist of your application. Take a look at info.plist in the iCal
package - it registers for "webcal"- and "ical"-URLs.

Another way is to register with InternetConfig. But therefore code must
be executed to register the URL-Type with InternetConfig.
Whereas the information in the info.plist is examined by the Finder
(and then probably registered with LaunchServices).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Internet Protocol Helper Applications
      • From: John Blackburn <email@hidden>
  • Prev by Date: metallized interface
  • Next by Date: Re: Internet Protocol Helper Applications
  • Previous by thread: Re: Internet Protocol Helper Applications
  • Next by thread: Re: Internet Protocol Helper Applications
  • Index(es):
    • Date
    • Thread