FROM : Alexander Powell
DATE : Sun Jul 09 10:13:38 2006
Excellent, that should do ;-)
I was hoping for a Cocoa-riffic way to do those two things, but I
suppose a few lines of Carbon code won't hurt...
Thanks for the speedy reply!
-- A-lex
On Jul 9, 2006, at 1:05 AM, Rosyna wrote:
> Call GetFrontProcess() to get the front process and install a
> carbon event handler for kEventClassApplication/
> kEventAppFrontSwitched.
>
> Ack, at 7/9/06, Alexander Powell said:
>
>> Is there a currently recommended way for a Cocoa app to register
>> for a notification or something when the front-most application
>> changes?
>>
>> After that's done, how could one query what application is now the
>> front-most?
>>
>> I have a need to write a simple faceless utility that only does
>> its thing when a particular application is in the foreground.
DATE : Sun Jul 09 10:13:38 2006
Excellent, that should do ;-)
I was hoping for a Cocoa-riffic way to do those two things, but I
suppose a few lines of Carbon code won't hurt...
Thanks for the speedy reply!
-- A-lex
On Jul 9, 2006, at 1:05 AM, Rosyna wrote:
> Call GetFrontProcess() to get the front process and install a
> carbon event handler for kEventClassApplication/
> kEventAppFrontSwitched.
>
> Ack, at 7/9/06, Alexander Powell said:
>
>> Is there a currently recommended way for a Cocoa app to register
>> for a notification or something when the front-most application
>> changes?
>>
>> After that's done, how could one query what application is now the
>> front-most?
>>
>> I have a need to write a simple faceless utility that only does
>> its thing when a particular application is in the foreground.
| Related mails | Author | Date |
|---|---|---|
| Alexander Powell | Jul 9, 09:58 | |
| Rosyna | Jul 9, 10:05 | |
| Alexander Powell | Jul 9, 10:13 | |
| wadeslists | Jul 9, 10:15 | |
| Rosyna | Jul 9, 10:20 | |
| Uli Kusterer | Jul 9, 17:01 |






Cocoa mail archive

