• 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
Spotlight mdimporter confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spotlight mdimporter confusion


  • Subject: Spotlight mdimporter confusion
  • From: Ali Lalani <email@hidden>
  • Date: Sun, 8 May 2005 17:47:44 -0400

Hey all,
I have a strange issue with spotlight recognizing and using my mdimporter.


I think it has to do with the fact that at any given time i might have more than one mdimporter on my drive at a time, and one of them is not necessarily in a standard mdimporter place(i.e. Library/ Spotlight/).

The problem is, as i'm developing and building my project the importer gets built as well, into my /Users/Shared/ directory, since that is what i have in my xcode settings. For doing a build install i have it go into the right place, so if i'm testing a production build i'll also have the mdimporter in /Applications/[My App Wrapper]/ Contents/Library/Spotlight

What seems to happen is when i try mdimport -L, my importer will come up in the list, but sometimes it's the one in /Users/Shared(i even tried making /Users/Shared/ a private folder in the spotlight prefs, but to no avail). That's still fine, and i wouldn't care either way except that for some reason while it seems it is a registered importer, it doesn't actually index my files when i make a change.

After that i go and delete that /Users/Shared/ mdimporter and try mdimport -L again and voila, the correct one in the app wrapper is recognized, but spotlight is *still* thrown for a loop because it will only index my files if i manually go and mdimport them from the command line. Changes to the files don't seem to get registered. Even logging out/rebooting doesn't seem to help.

At some point after all this it did start working again, i'm not sure exactly what i did, but i did re-build the entire spotlight index on the drive so that might have been it. Still, it ends up breaking again after more development since that same situation crops up again.

Has anyone run across this before? Is there a workaround perhaps, or a suggested way of integrating this into the development environment? Any help would be appreciated, because this is driving me nuts! Thanks,

    Ali

_______________________________________________
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


  • Prev by Date: Re: Radio Button Matrix Draws Multiple Selections
  • Next by Date: Re: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
  • Previous by thread: Re: localized nibfile is not loaded
  • Next by thread: 1 to many core data w/ large arrays
  • Index(es):
    • Date
    • Thread