I'm trying to add my App to the Open In menu for most file types, however I do not want my app to be used as a viewer or Editor. I just want it to be available as a receiver similar to Dropbox. I have currently added several file types and declared them as CFBundleTypeRole Viewer and with PDFs it works great, however, with other files such as Word documents, it attempts to use my application to view the document and will never hand the document off to my application. Any and all thoughts/suggestions/whatever would help. Thanks!
preguntado el 01 de febrero de 12 a las 22:02
In Monotouch, you will want to add a Document Type, Name the CFBundleTypeName whatever you would like, in my case I called it "All Docs". Then I set my LSHandlerRank to Alternate, and lastly I added an array called LSItemContentTypes, and added a string value of public.content (apple documentation specific for handling files) and the last entry was CFBundleTypeRole as Viewer. All of this was entered into my info.plist code necessary:
<key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>All Docs</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> <string>public.content</string> </array> </dict> </array>
¡Espero que esto ayude a alguien más!