I am working on a document app. My document is actually a package that can hold other arbitrary documents. When my document is loaded I can get a handle to all of these files with the NSFileWrapper API. I want to know what kind of file those NSFileWrapper objects represent so I know how to show it in my app. Is it a text file, or an image, or some binary file?
Is there a way to get the UTI of an NSFileWrapper? I did find an 'icon' property on NSFileWrapper coming from AppKit. So they must have some way of knowing what the file is to be able to look up its icon.