• 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: Second frontmost app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Second frontmost app?


  • Subject: Re: Second frontmost app?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 28 Apr 2009 09:44:12 +0200


Le 28 avr. 09 à 05:02, Dave DeLong a écrit :

Hey everyone,

Is there a way to get the second frontmost app? For example, right now Mail.app is the frontmost, then Safari, because Safari was the active app before I switched to Mail. Is there any sort of API to that tells me that if I were to cmd-tab, that Safari would be the new frontmost app?

You can use the ProcessManager API.
AFAK, the GetNextProcess() will returns the processes in the order you see them in the cmd+tab panel.


_______________________________________________

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: Second frontmost app?
      • From: Dave DeLong <email@hidden>
References: 
 >Second frontmost app? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Float value change
  • Next by Date: Re: Float value change
  • Previous by thread: Re: Second frontmost app?
  • Next by thread: Re: Second frontmost app?
  • Index(es):
    • Date
    • Thread