API for process tracing

Discussion in 'Mac Programming' started by shardulm, Oct 6, 2008.

  1. shardulm macrumors newbie

    Joined:
    Oct 6, 2008
    #1
    Hi I m developing an app (Objective C) in which i need to initiate my application as soon as a specific process starts.. so i need API wich wil inform me about a perticuler process and initiate my app..
    Thanks
     
  2. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #2
    Search Apple's developer connection for "launchd" and you will find answers you seek.
     
  3. iSee macrumors 68040

    iSee

    Joined:
    Oct 25, 2004
    #3
    Check out this technote: http://developer.apple.com/technotes/tn/tn2050.html The section on "Observing Arbitrary Processes" might be the one you want.

    You're going to need some kind of helper to watch for the target process and launch your app at the right time.

    A launchd deamon is the perfect thing for that.

    This stuff requires writing C code. I don't of higher-level alternatives, though they could exist; this seems like the kind of thing someone might want to do in Applescript, for example.
     
  4. shardulm thread starter macrumors newbie

    Joined:
    Oct 6, 2008
    #4
    thanks

    thanks its very helpful..

     
  5. shardulm thread starter macrumors newbie

    Joined:
    Oct 6, 2008
    #5
    thanks

    hi.. thanks for d rep.. can i know wich class or API provides network related functions in objective c..??

     

Share This Page