Re: Eaves dropping on application events
Re: Eaves dropping on application events
- Subject: Re: Eaves dropping on application events
- From: Óscar Morales Vivó <email@hidden>
- Date: Sun, 7 Dec 2003 20:47:19 +0100
NSDistributedNotificacionCenter looks like what you're looking for,
although I think it is likely it won't broadcast everything you want.
Although that's more of an implementation issue than anything else.
I don't have a clue right now about how to find what notifications are
broadcast through it as of Panther by the OS and Apple's apps, but it
shouldn't be that hard to find.
Hope that helps.
On 7 Dec 2003, at 20:33, Joshua Kifer wrote:
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.
_______________________________________________
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.