问题
How do I make an OS X app respond to any possible document UTI as an editor? That is, it should be capable of handling any file dragged to its Dock icon.
回答1:
Use the UTI public.data
to handle all files.
(Do not use public.item
; weird things will happen.)
来源:https://stackoverflow.com/questions/17050026/handle-every-possible-uti-in-an-os-x-application