I am seeing an NSWorkspaceDidDeactivateApplicationNotification notification to get an application that has just lost focus. I get an instance of NSRunningApplication that you get from the userInfo dictionary key - NSWorkspaceApplicationKey - the notification object.
I thought I could get the main window from the application from the notification, but I'm not sure where to go from here, since NSRunningApplication seems rather limited. Any help would be appreciated.
BTW - I use MacRuby, but the answer does not have to be in MacRuby.
thanks
objective-c macruby macos
alistairholt
source share