I want to find which applications are running, particularly I want to know which one has a window that has focus. So at any given time I want the app to know which applicati
Apologies, I found what I needed. If anyone is looking to do this same thing, this snippet should help:
NSDictionary *activeApp = [[NSWorkspace sharedWorkspace] activeApplication]; NSLog(@"Active application is: %@", (NSString *)[activeApp objectForKey:@"NSApplicationName"] );