Need idea about a project implementation

Discussion in 'Mac Programming' started by satyam90, Apr 25, 2009.

  1. satyam90 macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #1
    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.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. satyam90 thread starter macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #3
    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?
     
  4. satyam90 thread starter macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
  5. kpua macrumors 6502

    Joined:
    Jul 25, 2006
    #5
    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.
     

Share This Page