Re: Spotlight mdimporter + Foundation = "Cannot find function pointer"?
Re: Spotlight mdimporter + Foundation = "Cannot find function pointer"?
- Subject: Re: Spotlight mdimporter + Foundation = "Cannot find function pointer"?
- From: robert delius royar <email@hidden>
- Date: Mon, 16 May 2005 16:47:21 -0400 (EDT)
- Organization: Hobbyist and OS X User
- Priority: normal
Mon, 16 May 2005 (12:09 -0600 UTC) Daniel Lyons wrote:
Hi,
Much like Jeremy Higgs, I tried to follow the Spotlight metadata importer
tutorial. I also ran into the "Undefined symbols: _GetMetadataForFile" thing,
but I think this is because the example uses Cocoa's Foundation framework,
but doesn't instruct in adding the framework and #import line.
So I added that line and added the Foundation framework and arrived at a
compiled thing with no warnings (and without including the .c file.)
Then, when I test the plugin, I arrive at the same error: Cannot find
function pointer MetadataImporterPluginFactory.
Is there something about compiling Objective-C metadata importers, that
requires an extra step which is being left out of the documentation? Has
anyone else been able to make a metadata importer without running into this
problem, using Objective-C?
I have a folder in Developer which is a compilable mdimporter. Do you have
/Developer/Examples/Metadata/ImporterExample ? In it are two projects, an
importer and an "exporter." They both compile with Xcode2 and run without
errors. I changed the PLUGIN_ID using the uuidgen program to find a unique
ID. I used the example as a template to make an importer for previously
unindexed editor files.
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden