Getting Extensions of this Type UTType

I know that I can get UTType for this extension using UTTypeCreatePreferredIdentifierForTag (kUTTagClassFilenameExtension, extension, NULL), but I can not find a way to do the opposite, that is, an array of extensions for this UT ... What can I do?

thanks

+6
source share
1 answer

UTTypeCopyPreferredTagWithClass used to convert the UTI to another tag, for example file extensions:

 NSString *extension = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass(myUTI, kUTTagClassFilenameExtension); 
+8
source

Source: https://habr.com/ru/post/915425/


All Articles