自定义文档类型的其他属性未在Finder获取信息中显示

时间:2012-09-29 15:52:30

标签: macos spotlight spotlight-plugin

我的Spotlight插件会导入自定义文档格式的几个属性 搜索它们的工作正常,但我无法在 Finder的获取信息对话框中显示它们。

这里是 schema.xml (使用mdcheckschema解析):

<?xml version="1.0" encoding="UTF-8"?>
<schema version="1.0" xmlns="http://www.apple.com/metadata"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.apple.com/metadata
   file:///System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Resources/MetadataSchema.xsd">

   <types>
      <type name="com.mycompany.custom">
         <note>
            The keys that this metadata importer handles.
         </note>
         <allattrs>
            kMDItemVersion
            kMDItemLayerNames
            kMDItemDescription
            kMDItemAuthors
         </allattrs>
         <displayattrs>
            kMDItemDescription
            kMDItemAuthors
            kMDItemVersion
            kMDItemLayerNames
         </displayattrs>
      </type>
   </types>

</schema>

是否有工具可以调试架构是否使用

同时查看/System/Library/Spotlight/中的导入者根本不包含 schema.xml (默认的Xcode 4.x Spotlight也是如此)进口商项目,但这可能是一个错误)所以开始怀疑..

0 个答案:

没有答案
相关问题