Reputation: 453
I am developing a desktop application that capture computer activities on mac osx using objective-c. I know it's possible to capture it when user presses on the keyboard and mouse position. But I don't know how to detect when user switches tasks on computer, like closing a window (of other applications), activating another window (of other applications)?
Does anyone have any experience in that?
Upvotes: 0
Views: 208
Reputation: 61228
Yes, via the Accessibility system. For example the NSAccessibilityMainWindowChangedNotification.
Upvotes: 1