Reputation: 6348
There is a way in Objective-C to know which app has the focus (i.e. user is currently using) on a Mac?
Thanks in advance.
Upvotes: 1
Views: 485
Reputation: 61228
See NSWorkspace's -activeApplication.
Upvotes: 4