There is a way in Objective-C to know which app has the focus (i.e the user is currently using) on a Mac?
There is a way in Objective-C to know which app has the f开发者_StackOverflow中文版ocus (i.e. user is currently using) on a Mac?
Thanks in advance.
See NSWorkspace's -activeApplication.
精彩评论