Spotlight Importer Not Found in App Bundle
Spotlight Importer Not Found in App Bundle
- Subject: Spotlight Importer Not Found in App Bundle
- From: David Emme <email@hidden>
- Date: Fri, 14 Jul 2006 14:05:13 -0700
(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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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