什么是 Xcode 4 中的“导入的 UTI”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6661714/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:27:42  来源:igfitidea点击:

What are "Imported UTIs" in Xcode 4?

xcodeuti

提问by Constantino Tsarouhas

In Xcode 4 there are lists for "document types", "imported UTIs" and "exported UTIs" in project info. I know what document types are, but what are the imported/exported UTIs for? Do I need to declare every document type as a imported/exported UTI as well? I use UTIs.

在 Xcode 4 中,项目信息中有“文档类型”、“导入的 UTI”和“导出的 UTI”列表。我知道文件类型是什么,但是导入/导出的 UTI 是做什么用的?我是否需要将每种文档类型也声明为导入/导出的 UTI?我使用尿路感染。

Thanks.

谢谢。

回答by bames53

Your application declares the UTIs it uses as imported or exported UTIs.

您的应用程序将其使用的 UTI 声明为导入或导出的 UTI。

Exported UTIs are the UTIs for which your application is authoritative. That is, document types which you own and define.

导出的 UTI 是您的应用程序对其具有权威性的 UTI。也就是说,您拥有和定义的文档类型。

Imported UTIs are document types which you know about but for which some other application may be authoritative.

导入的 UTI 是您知道但其他一些应用程序可能对其具有权威性的文档类型。

The difference in practice is that if an application declares an imported UTI, and some other application declares the same UTI but as an exported UTI, the OS will use the exported UTI data over the imported UTI data.

实践中的区别在于,如果一个应用程序声明了导入的 UTI,而其他一些应用程序声明了相同的 UTI 但作为导出的 UTI,则操作系统将使用导出的 UTI 数据而不是导入的 UTI 数据。

More info

更多信息