I'm trying to build a Spotlight plugin, but I'm having trouble. I think my code is ok, it just seems to be this stupid UTI File Type thats messing me up. Going off example plists I created the following plist:
<?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>MDImporter</string> <key>LSItemContentTypes</key> <array> <string>com.carpestellarem.protoys.skin</string> </array> </dict> </array> <key>CFBundleExecutable</key> <string>SkinSearch</string> <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> <string>com.carpestellarem.skinsearch</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleVersion</key> <string>1.0</string> <key>CFPlugInDynamicRegisterFunction</key> <string></string> <key>CFPlugInDynamicRegistration</key> <string>NO</string> <key>CFPlugInFactories</key> <dict> <key>1D77D597-2116-453C-896A-A991D1181A14</key> <string>MetadataImporterPluginFactory</string> </dict> <key>CFPlugInTypes</key> <dict> <key>8B08C4BF-415B-11D8-B3F9-0003936726FC</key> <array> <string>1D77D597-2116-453C-896A-A991D1181A14</string> </array> </dict> <key>CFPlugInUnloadFunction</key> <string></string> <key>UTImportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Desktop Scheme</string> <key>UTTypeIdentifier</key> <string>com.carpestellarem.protoys.skin</string> <key>UTTypeTagSpecification</key> <dict> <key>plubic.filename-extension</key> <array> <string>skin</string> </array> </dict> </dict> </array> </dict> </plist>
I index this from the command line with a debug level of 4. It knows my metadata importer is there, but the end index doesn't contain what my code should add. Therefore I'm thinking that it's not correctly picking up on that my plugin should be indexing the file I'm giving it.
Whats up with this UTI File Type thing? |