• 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
Application Activation Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Activation Problem


  • Subject: Application Activation Problem
  • From: Dave <email@hidden>
  • Date: Fri, 13 May 2016 10:46:51 +0100

Hi All,

I’m using:

[myRunningApp activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];

To activate an Application. Is there any way to tell when the Application is actually active? I have the need to cycle through an Array of App Bundle IDs and make each Application Active, one after the other, leaving the last one in the list as the Active App.

If I do this in a tight loop then it seems to just activate the last on in the Array without activating the preceding apps. I tried adding a delay between each Activation call, and although this sort of works, it still out an App once in a while. I was thinking if there was something I could monitor to make sure the App has activated and is stable before sending the next Activate.

Any ideas or suggestions greatly appreciated.

All the Best
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: Kyle Sluder <email@hidden>
  • Prev by Date: Re: objc [66375] class Foo is implemented in both BundleA and BundleB
  • Next by Date: Re: ARC [was Protecting against "app nap"]
  • Previous by thread: Re: unwind segue on navigation pop
  • Next by thread: Re: Application Activation Problem
  • Index(es):
    • Date
    • Thread