Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Monaj

macrumors regular
Original poster
May 24, 2009
193
0
Hi All,

We have a very nice feature in Mac OS X, whenever we type any expression such as: 35 + 36, in spotlight, it shows: Calculator - <calculator app icon> - 71 in the result list.

It seems like whatever user is typing as an expression in spotlight, calculator application is taking it as input and showing the calculated value in result list.

I want to make a sample application behaving in the same way, and when I did some searching on net, I found couple of keywords such as- spotlight API, spotlight plugin, but I am not sure if any of these is going to serve the intended purpose.

Can anyone direct me towards right direction?

Thanks
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
I don't think there is a public API to do what the results do with calculator: that is a special case. I've certainly never seen any other app manage to interface like that.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.