Re: Second frontmost app?
Re: Second frontmost app?
- Subject: Re: Second frontmost app?
- From: Peter N Lewis <email@hidden>
- Date: Tue, 28 Apr 2009 14:15:33 +0800
On 28/04/2009, at 11:02 , Dave DeLong wrote:
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?
As far as I'm aware, the only way to do this is to track the front
most application with the carbon event kEventClassApplication
kEventAppFrontSwitched and remember whatever was the last application.
I don't believe you can track application switches from Cocoa
directly, but I'd be happy to proven wrong.
Enjoy,
Peter.
--
Run macros from your iPhone with Keyboard Maestro Control!
or take a break with Derzle for your iPhone
Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
Aragom Space War <http://www.stairways.com/iphone/aragom> Don't get
killed!
Derzle <http://www.stairways.com/iphone/derzle> Enjoy a relaxing puzzle.
<http://www.stairways.com/> <http://download.stairways.com/>
_______________________________________________
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