Re: Querying the front application
Re: Querying the front application
- Subject: Re: Querying the front application
- From: Uli Kusterer <email@hidden>
- Date: Sun, 9 Jul 2006 17:01:49 +0200
Am 09.07.2006 um 10:05 schrieb Rosyna:
Call GetFrontProcess() to get the front process and install a
carbon event handler for kEventClassApplication/
kEventAppFrontSwitched.
Instead of GetFrontProcess(), you could also just do:
[[NSWorkspace sharedWorkspace] activeApplication]
Which gives you a dictionary with lots of nice info.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden