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.
加载中,请稍侯......
精彩评论