Handle every possible UTI in an OS X application

2019-08-19 04:55发布

问题:

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.)



标签: macos cocoa uti