开发者

observe osx application's state(opening, quitting)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜