FROM : Nick Zitzmann
DATE : Wed May 14 22:06:00 2008
On May 14, 2008, at 1:16 PM, Matthew Gertner wrote:
> I'd like to set the application that should be run when a URL with a
> given scheme is opened. The only way I've found to do this is
> _LSSetDefaultSchemeHandlerURL, but I'd rather not go with an
> undocumented API if it can be avoided. Is there a Cocoa API or
> something for this that I haven't been able to find? Or would I be
> better off using the Cocoa APIs to modify the launch services database
> directly?
There is no Cocoa API. The only supported way of doing this is to use
LSSetDefaultHandlerForURLScheme(), which requires Tiger or later.
Prior to Tiger, you had to use Internet Config to do that.
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Wed May 14 22:06:00 2008
On May 14, 2008, at 1:16 PM, Matthew Gertner wrote:
> I'd like to set the application that should be run when a URL with a
> given scheme is opened. The only way I've found to do this is
> _LSSetDefaultSchemeHandlerURL, but I'd rather not go with an
> undocumented API if it can be avoided. Is there a Cocoa API or
> something for this that I haven't been able to find? Or would I be
> better off using the Cocoa APIs to modify the launch services database
> directly?
There is no Cocoa API. The only supported way of doing this is to use
LSSetDefaultHandlerForURLScheme(), which requires Tiger or later.
Prior to Tiger, you had to use Internet Config to do that.
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Matthew Gertner | May 14, 21:16 | |
| Nick Zitzmann | May 14, 22:06 | |
| Ken Thomases | May 14, 23:16 | |
| Nick Zitzmann | May 14, 23:25 | |
| Jens Alfke | May 15, 00:23 | |
| Nick Zitzmann | May 15, 00:26 | |
| Matthew Gertner | May 16, 17:57 | |
| Jens Alfke | May 16, 18:27 | |
| Matthew Gertner | May 16, 19:05 |






Cocoa mail archive

