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

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
I want my application running in background when I start it. When user high lights and selects some text ( anywhere like email, web page, document etc) and presses custom hot keys on keyboard (apple command button + F1), my application pops up a dialog with the selected text and {OK, Cancel} buttons. it proceeds further when OK is clicked and so on......................

I am not getting any idea how to implement it. Can some body suggest me how to Make my application run in background without any window in main and get the selected text.

I will be greatfull to all who can help me.
 
Excellent kainjow.

I have gone through the content about Providing Services.
But need some clarifications.
1. If I am wring my code using XCode using Obj C/Java, which project I have to select initially. Will I have to select Cocoa Application or Core Foundation or Core service based application.
2. I am not able to see Library/Services folder on my Mac Tiger. Where can I find it on Mac Tiger or Mac Leapord.

If some body has atleast the skeleton for the project, it will be easy to understand. Can anyone share service based application prototype code with me?
 
You may have to create /Library/Services or ~/Library/Services yourself. The system may not have created them for you if there aren't already custom services installed on your machine.

Take a look at /Developer/Examples/AppKit/SimpleService for an example service to work from.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.