Reputation: 1890
I want, that my app opens when (for example) the user opens iTunes. How Can I do this?
Upvotes: 8
Views: 1069
Reputation: 237020
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.
Upvotes: 4