I have an app which is something of a generic file manager. I would like the "Open in..." functionality present in apps using QLPreviewController, UIDocumentInteractionController, etc to be able to send my app any filetype.
I have created a document type but whether the "Types" is set to " * ", "public. * ", or similar combinations I can't get the app to display for non-specific cases (it does work if I change the UTI to com.adobe.pdf, for example).
On Mac OS X one can set an app to be a generic viewer of all file types - is this not possible on iOS?
EDIT
Going through the docs, I found there are only a handful of primitive UTI types, from which all others inherit
public.item
public.content
public.database
public.calendar-event
public.message
public.contact
public.archive
public.url-name
public.executable
com.apple.resolvable
Of these, many are clearly never going to be instances of files.
I may have been overly ambitious trying to create a wildcard test: I tried public.item and it worked on a pdf file from mail. Since the docs state that public.item is the "Base type for the physical hierarchy.", that could mean this is the wildcard, ie " public.item = * "
Worst case scenario, I could add item, content, database, and archive and hope for the best. Best case scenario, item covers everything.
public.item
can also match weird things like creator codes in Apple Events, as I found out when I got reports of an app of mine randomly launching on OS X 10.6. I fixed the issue by using public.data instead. (Of course, Apple Events stuff doesn't apply to iOS…) – Iiette