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

shardulm

macrumors newbie
Original poster
Oct 6, 2008
3
0
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
 

iSee

macrumors 68040
Oct 25, 2004
3,540
272
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.
 

shardulm

macrumors newbie
Original poster
Oct 6, 2008
3
0
thanks

thanks its very helpful..

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.
 

shardulm

macrumors newbie
Original poster
Oct 6, 2008
3
0
thanks

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

Search Apple's developer connection for "launchd" and you will find answers you seek.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.