2009-02-27 9 views

Répondre

13

Jetez un oeil à Apple Launch Services Programming Guide. Vous devez ajouter CFBundleURLTypes à vos applis Info.plist et enregistrez votre application avec LSRegisterURL().

Extrait de Firefox.app/Contents/Info.plist:

<key>CFBundleURLTypes</key> 
    <array> 
      <dict> 
        <key>CFBundleURLIconFile</key> 
        <string>document.icns</string> 
        <key>CFBundleURLName</key> 
        <string>http URL</string> 
        <key>CFBundleURLSchemes</key> 
        <array> 
          <string>http</string> 
        </array> 
      </dict> 
.... 

EDIT: Voir Handling URL schemes in Cocoa pour une how-to article

Questions connexes