reinaldoluckman
reinaldoluckman

Reputation: 6348

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 focus (i.e. user is currently using) on a Mac?

Thanks in advance.

Upvotes: 1

Views: 485

Answers (1)

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

See NSWorkspace's -activeApplication.

Upvotes: 4

Related Questions