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
UTTypeCopyPreferredTagWithClass
is used to convert a UTI to another tag, like file extensions:
NSString *extension = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass(myUTI, kUTTagClassFilenameExtension);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With