开发者

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

开发者 https://www.devze.com 2023-02-04 16:05 出处:网络
I want, that m开发者_运维知识库y app opens when (for example) the user opens iTunes. How Can I do this?Have a program always running in the background that is subscribed to NSWorkspace\'s NSWorkspaceD

I want, that m开发者_运维知识库y app opens when (for example) the user opens iTunes. How Can I do this?


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.


If you are talking iOS; you can't.

0

精彩评论

暂无评论...
验证码 换一张
取 消