Hi, > You might consider subscribing to > NSWorkspaceDidActivateApplicationNotification and cycling to the next > app in the list upon receipt, but the best you can do is best-effort. > > --Kyle >
That’s actually what I am doing. I monitor NSWorkspaceApplicationWllLaunchNotification, NSWorkspaceApplicatioDidLaunchNotification and NSWorkspaceDidActivateApplicationNotification (as well as others). For each notification I get I add the BundleID of the App to an Array. Then at some later point, I want to cycle through the Activates and re-send them in the same order they were activated originally. I realise that this is not 100% perfect (because of outside influences, (other apps etc)), but I’d like to get it as close as possible as long as no other Apps are getting in the way. I suppose I could set a flag somewhere and then check it in the Activate notification handler. Cheers Dave _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com