Re: Internet Protocol Helper Applications
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.