• 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: how to get events from a carbon event handler, in a cocoa app.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Eric Schlegel <email@hidden>
  • Date: Thu, 14 Sep 2006 08:21:24 -0700


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


  • Follow-Ups:
    • Re: how to get events from a carbon event handler, in a cocoa app.
      • From: John Clayton <email@hidden>
References: 
 >how to get events from a carbon event handler, in a cocoa app. (From: Clayton John <email@hidden>)
 >Re: how to get events from a carbon event handler, in a cocoa app. (From: Rosyna <email@hidden>)
 >Re: how to get events from a carbon event handler, in a cocoa app. (From: Clayton John <email@hidden>)

  • Prev by Date: Re: how to get events from a carbon event handler, in a cocoa app.
  • Next by Date: Re: how to get events from a carbon event handler, in a cocoa app.
  • Previous by thread: Re: how to get events from a carbon event handler, in a cocoa app.
  • Next by thread: Re: how to get events from a carbon event handler, in a cocoa app.
  • Index(es):
    • Date
    • Thread