• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Spotlight mdimporter + Foundation = "Cannot find function pointer"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Spotlight mdimporter + Foundation = "Cannot find function pointer"? (From: Daniel Lyons <email@hidden>)

  • Prev by Date: Re: Different NSCells in one NSTableView/NSTableColumn
  • Next by Date: Re: From Panther to Tiger
  • Previous by thread: Re: Spotlight mdimporter + Foundation = "Cannot find function pointer"?
  • Next by thread: Drawing content in NSTableView Cells
  • Index(es):
    • Date
    • Thread