Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望我的应用程序在(例如)用户打开 iTunes 时打开。我怎样才能做到这一点?
让一个订阅了 NSWorkspace 的 NSWorkspaceDidLaunchApplicationNotification 的程序始终在后台运行,并让它在将 iTunes 视为 NSWorkspaceApplicationKey 对象时执行它的操作。
如果您在谈论 iOS;你不能。