动态UTI是否稳定? [英] Are dynamic UTIs stable?

查看:59
本文介绍了动态UTI是否稳定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有没有声明的UTI格式的文件,因此Launch Services已为其分配了动态UTI( dyn.ah62d4rv4ge81g23wsmw1a5dbte ).我无法控制这些文件的UTI.

I have files of a format that has no declared UTI, so Launch Services has assigned to it a dynamic UTI (dyn.ah62d4rv4ge81g23wsmw1a5dbte). I have no control over the UTI of these documents.

碰巧的是,我想为此格式开发一个Quick Look生成器,并且Quick Look生成器仅依赖于文档UTI,并且会忽略其属性列表中存在的任何其他类型的文档标识(例如创建者代码和扩展名.

It also happens that I would like to develop a Quick Look generator for that format, and that Quick Look generators only rely on the document UTI, and will ignore any other kind of document identification present in their property list (such as the creator code and the extension).

在开发人员添加动态UTI之前,对我来说使用它安全吗?那些文件是由稳定的算法生成的,并且很有可能为另一台计算机上的相同文件返回相同的UTI吗?

Is it safe for me to use the dynamic UTI until the developer adds one? Are those generated by a stable algorithm that has good chances of returning the same UTI for the same files on another machine?

推荐答案

动态UTI显然是以确定性的方式生成的,从而使它们在不同的Mac上都是可行的标识符.

Dynamic UTIs are apparently generated in a deterministic way that makes them viable identifiers across different Macs.

因此,对插件包使用动态UTI是安全的.

So, it's safe to use a dynamic UTI for plugin bundles.

这篇关于动态UTI是否稳定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆