• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Application Activation Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Activation Problem


  • Subject: Re: Application Activation Problem
  • From: Dave <email@hidden>
  • Date: Fri, 13 May 2016 16:21:09 +0100

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 (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


  • Follow-Ups:
    • Re: Application Activation Problem
      • From: Ken Thomases <email@hidden>
    • Re: Application Activation Problem
      • From: Kyle Sluder <email@hidden>
References: 
 >Application Activation Problem (From: Dave <email@hidden>)
 >Re: Application Activation Problem (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: unwind segue on navigation pop
  • Next by Date: Re: Application Activation Problem
  • Previous by thread: Re: Application Activation Problem
  • Next by thread: Re: Application Activation Problem
  • Index(es):
    • Date
    • Thread