title: Getting notified when the current application changes in Cocoa
body: <p>I want to be notified when the current application will change. I looked at NSWorkspace. It will send notifications only when your own application becomes active or loses the activity.
  I want to be informed about every application. How can I do this in Cocoa?</p>