Search code examples
c++macosmacos-carbon

Can anyone tell me about the Event Handler or Callback on switching of the front process on Mac?


I need to have the callback or some event handler which can help me, know front process is changed.

Mac: C++/Carbon. Any help is highly appreciated.


Solution

  • That would be the kEventAppFrontSwitched event in the kEventClassApplication class. See the Carbon Event Manager reference.