Re: Eaves dropping on application events
Re: Eaves dropping on application events
- Subject: Re: Eaves dropping on application events
- From: Kyle Moffett <email@hidden>
- Date: Sun, 7 Dec 2003 22:16:56 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Nov 29, 2003, at 19:54, April Gendill wrote:
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.
The issue here is not how to react to events, but how to identify them.
Most applications (Such as iTunes and the Finder) don't actually
broadcast events anywhere when they finish playing a song or open a new
window or whatever. Besides, as Apple or any other company changes
their implementation and interface, maintaining compatibility for such
an event system would be quite difficult. For example, when they added
the ability to open new folders in the same window to the finder,
should that still be considered opening a new window or not. If you
wanted to play a sound on every window open then it should not be.
OTOH, if you wanted to do something every time the Finder changed
window contents it should be. You are foggy on the issue not because
you haven't read enough, but because it is inherently a foggy issue :-)
Cheers,
Kyle Moffett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQE/0+0oag7LSGnFq10RAlamAJ40pObAsOg6c1/ikABskA/A+QQkIACfZoYM
HAhcHsPU2nEKln8dI9YAbiM=
=ECSn
-----END PGP SIGNATURE-----
_______________________________________________
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.