Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道某些 UT 类型(kUTTypeJPEG例如 )符合kUTTypeImage. 如果我想声明我自己的 UTType(kUTTypeMyImage例如 )并使现有的 UTType(如kUTTypeJPEG我之前所说的)符合它以UTTypeConformsTo(existingUTType, kUTTypeMyImage)返回 TRUE,该怎么办?
kUTTypeJPEG
kUTTypeImage
kUTTypeMyImage
UTTypeConformsTo(existingUTType, kUTTypeMyImage)
可能吗?
您可以在应用程序的 info.plist 中设置它。
苹果文档在这里:http: //developer.apple.com/library/mac/#documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html#//apple_ref/doc/uid/TP40001319-CH204-SW1
您需要密切关注,UTTypeConformsTo因为这是要设置的关键属性。
UTTypeConformsTo