Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch my app programmatically, if an other app opens?

I want, that my app opens when (for example) the user opens iTunes. How Can I do this?

like image 779
Flocked Avatar asked Jan 11 '11 14:01

Flocked


2 Answers

If you are talking iOS; you can't.

like image 27
Jake Avatar answered Sep 21 '22 13:09

Jake


Have a program always running in the background that is subscribed to NSWorkspace's NSWorkspaceDidLaunchApplicationNotification and have it do its thing when it sees iTunes as the NSWorkspaceApplicationKey object.

like image 155
Chuck Avatar answered Sep 20 '22 13:09

Chuck