Post

Replies

Boosts

Views

Activity

Reply to How do I create a Spotlight Importer target?
[QUOTE]Indeed. That should give you some idea as to the general disposition of this technology )-: Most of the focus these days is on Core Spotlight.[/QUOTE]Core Spotlight isn't a direct replacement for Spotlight Importers, is it?Core Spotlight only works for database-like applications (the exception on macOS). There doesn't seem to be a more modern replacement for custom document files. So everybody who has a custom file format still needs to write a Spotlight Importer.Thanks to your hint and the Internet I have gotten it to work like this:The Spotlight Importer template is included in Xcode 8, which is still downloadable. The template is included atXcode.app/Contents/Developer/Library/Xcode/Templates/Project\ Templates/Mac/Other/Spotlight\ Importer.xctemplateThe "Spotlight Importer.xctemplate" can be copied to~/Library/Developer/Xcode/Templates/Spotlight\ Importer.xctemplateand Xcode 11 will pick it up and happily create Spotlight Importer targets again.The sample target is Core Data centric and uses some deprecated API - maybe that's why it was removed. After removing the unnecessary Core Data parts it works fine for custom file formats and without deprecation warnings.
Feb ’20