• 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 Importer Not Found in App Bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight Importer Not Found in App Bundle


  • Subject: Re: Spotlight Importer Not Found in App Bundle
  • From: Philip Dow <email@hidden>
  • Date: Sat, 15 Jul 2006 14:30:41 +0200

From the Spotlight Docs:

"If your importer resides within your application’s wrapper, it may not be found automatically during testing. Importers are detected when the bundle’s modification date is changed. You can explicitly register your application by specifying the -f flag to lsregister. The lsregister tool is found in /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/Support/.

lsregister -f MyApp.app

Another possibility is that your application may be untrusted. Spotlight importers are not loaded from untrusted applications. Launching the application for the first time causes the application to be trusted."

You might also try moving your app to the Applications folder and running it.

-Phil


On Jul 14, 2006, at 11:05 PM, David Emme wrote:

(OSX 10.4.7, Xcode 2.3)

I'm trying to add a Spotlight Importer to my Core Data app after- the-fact. I created a new project using the "with importer" template, moved my source files over, and got the app working. The Build also generates a LifeList.mdimporter in LifeList.app/Contents/ Library/Spotlight/. My problem is that I can't get "the system" to acknowledge the presence of the importer bundle inside my application bundle:

mdimport -L
does not show my importer, even after launching my freshly cleaned and rebuilt app, nor after running
lsregister -f -lint /Users/dave/Projects/Birding/build/Debug/ LifeList.app


Also:
mdimport -d2 LifeListDB.lldb says:
2006-07-14 13:39:46.127 mdimport[15314] Import '/Users/dave/Library/ Application Support/LifeList/LifeListDB.lldb' type 'org.dhe.lifelist.database' no mdimporter
2006-07-14 13:39:46.131 mdimport[15314] Sending attributes of...



However, if I copy my mdimporter bundle from my app into ~/Library/ Spotlight, then
mdimport -L
acknowledges its existence there, and


mdimport -d2 LifeListDB.lldb says:
2006-07-14 12:11:43.974 mdimport[14283] Import '/Users/dave/Library/ Application Support/LifeList/LifeListDB.lldb' type 'org.dhe.lifelist.database' using 'file://localhost/Users/dave/ Library/Spotlight/LifeList.mdimporter/'
2006-07-14 12:11:43.998 mdimport[14283] Importer indicated failure for file '/Users/dave/Library/Application Support/LifeList/ LifeListDB.lldb'
2006-07-14 12:11:44.001 mdimport[14283] Sending attributes of...


The "Importer indicated failure" is because it's currently the raw code from the template (and that code by default returns False), cause I'm trying to get the pieces wired together before writing the code for importer. The point is, "it" found and used the importer after it was moved out of the app bundle and into ~/ Library/Spotlight.

What do I have to do to cause the importer to be recognized when it resides in my app bundle?

TIA,
-Dave

--
C++: an octopus made by nailing extra legs onto a dog.
       - Unknown


_______________________________________________ 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

_______________________________________________ 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 Importer Not Found in App Bundle (From: David Emme <email@hidden>)

  • Prev by Date: Re: Drag and drop... without moving mouse?
  • Next by Date: Re: Making Text Bigger and Smaller
  • Previous by thread: Spotlight Importer Not Found in App Bundle
  • Next by thread: How to disable the system beep when running NSSavePanel
  • Index(es):
    • Date
    • Thread