Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Cannot find function pointer MetadataImporterPluginFactory" error when testing Spotlight plugin



Hi!

I'm trying to develop a Spotlight plugin for one of our apps, and after struggling for a while to get Spotlight to recognise the UTI correctly, I get this when testing a file (in the manner suggested in the Apple Spotlight docs):

minime:~/Library/Application Support/TLAF/Connoisseur/Recipes jhiggs$ mdimport -d2 15\ Minute\ Brownies.recipe/
2005-05-04 16:17:00.237 mdimport[5321] CFLog (22): Cannot find function pointer MetadataImporterPluginFactory for factory 659E63D2-9B52-48CA-87BD-4864AA62EDDE in CFBundle/CFPlugIn 0x341c50 </ Users/jhiggs/Documents/Projects/build/Connoisseur.app/Contents/ Library/Spotlight/ConnoisseurSpotlight.mdimporter> (bundle, loaded)
2005-05-04 16:17:00.404 mdimport[5321] Import '/Users/jhiggs/Library/ Application Support/TLAF/Connoisseur/Recipes/15 Minute Brownies.recipe' type 'com.tlaf.connoisseur.recipe' no mdimporter


I haven't touched the main.c file, except for adding an '#include "GetMetadataForFile.c"'. FWIW, the UUID mentioned in the above output and the UUID of the plugin DO match...

If this helps, here's the Info.plist file from the Spotlight plugin's project:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd">
<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.tlaf.Connoisseur.recipe</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>ConnoisseurSpotlight</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.tlaf.Connoisseur.MDImporter</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>659E63D2-9B52-48CA-87BD-4864AA62EDDE</key>
<string>MetadataImporterPluginFactory</string>
</dict>
<key>CFPlugInTypes</key>
<dict>
<key>8B08C4BF-415B-11D8-B3F9-0003936726FC</key>
<array>
<string>659E63D2-9B52-48CA-87BD-4864AA62EDDE</string>
</array>
</dict>
<key>CFPlugInUnloadFunction</key>
<string></string>
</dict>
</plist>


Does anyone have any suggestions? I've searched around a bit, and haven't found anything relating to this error...

Thanks!

Jeremy.

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.