How to Set Entry For Cfbundleurlschemes

mxu

Registered

have an applcation that defines a specfic doc
extension for its binary docs. Documentation assocaition is set via Info.plist.

at shell $ open myDoc.oms
or $ myApp -i myDoc.oms
will open my app and load the doc.
I would like to know how to let Safari or other
web browser to recognize and open myDoc.oms
(open a file )

and further when webbrowser receives a linking like this
http://www.xxx.xxx/ttt/zzz.oms.
the browser will let myApp to open this *.oms file. (open url)

through Info.plist entry
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>entry(for open file) ?</string>
<key>CFBundleURLSchemes</key>
<array>
<string>entry(for open file) ?</string>
...
</array>
<key>LSIsAppleDefaultForScheme</key>
<true/>
</dict>
<dict>
<key>CFBundleURLName</key>
<string>entry(for open url w/ *.oms) ?</string>
<key>CFBundleURLSchemes</key>
<array>
<string>entry(for open url w/ *.oms) ?</string>
...
</array>
</dict>
</array>

 
Back
Top