2009-02-27 7 views

risposta

13

Dai uno sguardo a Launch Services Programming Guide di Apple. Devi aggiungere CFBundleURLTypes alle tue app Info.plist e registrare la tua app con LSRegisterURL().

Estratto dal 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: vedere Handling URL schemes in Cocoa per un how-to articolo