FROM : Philip Dow
DATE : Sat Jul 15 14:30:41 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Sat Jul 15 14:30:41 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| David Emme | Jul 14, 23:05 | |
| Philip Dow | Jul 15, 14:30 |






Cocoa mail archive

