Register for all file types (CFBundleDocumentTypes)
Programs like Drop Box, or Airsharing don't handle or edit documents but store them. In this case it would seem that t开发者_运维问答hey have to register as being a valid choice for any type of file. Is there a way to register your application as a handler for all files? '.*' ? Or is the only solution to register for any type of file that you can think of?
Registering for the public.data type accepts EVERYTHING. If you want specific actions for certain types of files you will need to check when it gets passed to your app. See this apple doc for the hierarchy: Apple
Edit for clarification: public.data allows for your app to accept any kind of data type. (image/text/etc..)..the very base UTI is public.item (includes public.data and public.content and public.archive). As i'm not sure what you are really trying to do, it could be that you want the other stuff as well.
精彩评论