Getting extensions of a given UTType
objective-c, types
Solution
`UTTypeCopyPreferredTagWithClass` is used to convert a UTI to another tag, like file extensions:
NSString *extension = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass(myUTI, kUTTagClassFilenameExtension);
Problem
I know I can get the UTType of a given extension using UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, extension, NULL) but I can't find a way to do the opposite, that is an array of extensions for a given UT... What can I do? Thank you