Re: Application Activation Problem
Re: Application Activation Problem
- Subject: Re: Application Activation Problem
- From: Ken Thomases <email@hidden>
- Date: Sat, 14 May 2016 07:45:45 -0500
On May 13, 2016, at 10:21 AM, Dave <email@hidden> wrote:
>
> 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.
On May 13, 2016, at 4:46 AM, Dave <email@hidden> wrote:
> I’m using:
>
> [myRunningApp activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];
>
> To activate an Application.
I don't know why you think you need to do this, but it's a terrible idea. I'd hunt such an app down and remove it the first time it did this. This is going to un-interleave the windows of different apps that I want interleaved. This is going to un-hide apps I want hidden. It's going to flash windows all over. It's going to switch Spaces against my wishes, including to and from full-screen spaces. There's a chance it's going to unminimize windows I want minimized. It's certainly going to steal focus. It's horrible all over.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden