• 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: Eaves dropping on application events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eaves dropping on application events


  • Subject: Re: Eaves dropping on application events
  • From: Joshua Kifer <email@hidden>
  • Date: Sun, 7 Dec 2003 14:33:38 -0500

April,

I've been searching through the documentation and I have yet to find the particular service that broadcasts these events. I don't know if applications default to broadcast when they are opened, closed, etc. I thought the Workspace might be the place, but listening to all events from there got me zilch. I also checked around in the Finder documentation to see if it offered this kind of information, but all I found was basically a wrapper to the file system.

So I suppose what I am seeking is some system level notification center that broadcasts all these system level activities. I have yet to find one.

Of course, the capability must exist, the Dock obviously is aware of all these things. Anyone want to tell me how the Dock works?

Joshua

On Dec 7, 2003, at 2:25 PM, email@hidden wrote:

Isn't it possible to write either a command line tool or small app that
would just listen for all events... I think the param you pass for the
event to watch is either nil or null, and then log the even either to the
console or to a file or something?
The only thing I wonder is if the app would be able to log not only the
notification posted but the posting app or at least the posting class?

I was going to experiment with this but other things have consumed my time
and so if I am right about this and it would work let me know, if not, let
me know so I dont waste time.

Thanks
April.


There was no response to the message quoted below. I am also
interested in learning how to do this. I'm interested in making an
app that is able to be informed when other applications are launched,
quit, activated or deactivated. Any tips?

FROM: April Gendill
DATE: 2003-11-30 01:54

Out of curiosity, How does one react to events in other applications?
Lets say I want the finder to play a sound when a window opens or
perhaps I'd like to know when iTunes finishes playing a track or is
completely launched. So that I can do ... Something I dunno make the
computer play a happy little flash movie, the reaction isn't important,
It's finding out what's happening in any app or specific apps that I'm
foggy on.

April.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Eaves dropping on application events
      • From: Eric Schlegel <email@hidden>
    • Re: Eaves dropping on application events
      • From: Óscar Morales Vivó <email@hidden>
References: 
 >Re: Eaves dropping on application events (From: Joshua Kifer <email@hidden>)

  • Prev by Date: Re: Eaves dropping on application events
  • Next by Date: Re: Eaves dropping on application events
  • Previous by thread: Re: Eaves dropping on application events
  • Next by thread: Re: Eaves dropping on application events
  • Index(es):
    • Date
    • Thread