You declare new UTIs in your application Info.plist. Apple core types can be seen here:
/System/Library/Frameworks/CFNetwork.framework/Versions/A/Resources/CFNetworkCoreTypes-Info.pliste.g. jpeg looks like this:
UTTypeConformsTo = "public.image"; UTTypeDescription = "JPEG image"; UTTypeIdentifier = "public.jpeg"; UTTypeTagSpecification = { "com.apple.ostype" = JPEG; "public.filename-extension" = ( jpeg, jpg, jpe ); "public.mime-type" = ( "image/jpeg", "image/jpg" ); };and the same file also contains a MIME type to file extension map:
MIMETypeToExtensionMap = { "application/andrew-inset" = ( ez ); "application/mac-compactpro" = ( cpt ); "application/msexcel" = ( xls ); "application/mspowerpoint" = ( ppt ); "application/msword" = ( doc ); "application/octet-stream" = ( dms, lha, lzh, class, so, iso, fla );
No comments:
Post a Comment