Registration for all file types (CFBundleDocumentTypes)

Programs such as Drop Box or Airsharing do not process or edit documents, but save them. In this case, it seems that they should be registered as a valid choice for any type of file. Is there a way to register your application as a handler for all files? '. * '? Or is this the only registration solution for any type of file you can think of?

+6
source share
1 answer

Registration for type public.data accepts EVERYTHING. If you need specific actions for certain types of files, you will need to check when they will be transferred to your application. See this apple document for hierarchy: Apple

Edit for clarification: public.data allows your application to accept any type of data. (image / text / etc.) .. the UTI base itself is public.item (includes public.data and public.content and public.archive). Since I'm not sure what you are actually trying to do, maybe you also want other stuff.

+13
source

Source: https://habr.com/ru/post/892854/


All Articles