Windows hooks allows you to poke inside other processes and sometimes alter their behaviors.
Is there such thing for Mac OS X?
Thanks!
Quartz event taps can monitor and modify low-level events such as keystrokes and mouse clicks, subject to some restrictions. Can you tell more about what you want to do?