• 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: Setting default application for URL scheme
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting default application for URL scheme


  • Subject: Re: Setting default application for URL scheme
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 14 May 2008 14:06:00 -0600


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/>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting default application for URL scheme
      • From: Ken Thomases <email@hidden>
References: 
 >Setting default application for URL scheme (From: "Matthew Gertner" <email@hidden>)

  • Prev by Date: Re: Bypassing Interface Builder
  • Next by Date: Launching Cocoa Application externally (Yann Disser)
  • Previous by thread: Setting default application for URL scheme
  • Next by thread: Re: Setting default application for URL scheme
  • Index(es):
    • Date
    • Thread