Re: how to get events from a carbon event handler, in a cocoa app.
Re: how to get events from a carbon event handler, in a cocoa app.
- Subject: Re: how to get events from a carbon event handler, in a cocoa app.
- From: John Clayton <email@hidden>
- Date: Thu, 14 Sep 2006 20:19:56 +0200
I'm on 10.4.7.
On Sep 14, 2006, at 17:21, Eric Schlegel wrote:
On Sep 14, 2006, at 8:07 AM, Clayton John wrote:
:-)
Cool to know - thanks - I stole the code from an example...
OK, I basically want to listen for process activation and
termination... watching the live process list essentially, here's
how the handler gets installed:
EventTypeSpec eventsToListenFor [2];
eventsToListenFor[0].eventClass = kEventClassApplication;
eventsToListenFor[0].eventKind = kEventAppLaunched;
eventsToListenFor[1].eventClass = kEventClassApplication;
eventsToListenFor[1].eventKind = kEventAppTerminated;
What version of the OS are you using? I believe you might only get
the kEventClassApplication Carbon events in a Cocoa app in 10.4 or
later.
-eric
_______________________________________________
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