views:

19

answers:

1

how can I get notified at my app while the specify application is opening or closing?

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

+2  A: 

Subscribe to the NSWorkspace notifications NSWorkspaceDidLaunchApplicationNotification and NSWorkspaceDidTerminateApplicationNotification.

JWWalker