I saw that we have access to the calculator in Spotlight! And I wonder how the application can add a custom answer, for example, a calculator!
Thank!
The simple answer is no, they cannot. The only thing you can write is a custom importer in which the application allows you to index your application data (in the form of documents or a database).
Introducing Spotlight (developer.apple.com)