开发者

observe osx application's state(opening, quitting)

开发者 https://www.devze.com 2023-01-12 12:09 出处:网络
how can I get notified at my app while the specify applicati开发者_StackOverflow社区on is opening or closing?

how can I get notified at my app while the specify applicati开发者_StackOverflow社区on is opening or closing?

for example, I need do something in my app when iTunes is quitting.


Subscribe to the NSWorkspace notifications NSWorkspaceDidLaunchApplicationNotification and NSWorkspaceDidTerminateApplicationNotification.

0

精彩评论

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