intercepting events in OS X (replacing toolbox fnct)

cogansco

Registered
Hello-
I am interested in writing an application/extension that will intercept events from ALL windows- for example, when a used clicks on the collapse button in any open window, i want to know so that I can call my own function rather than the default one. Is there a way to replace the standard toolbox function for this with my own, or is there some way for me to receive these events in other windows that belong to other applications? Is the best bet to make some sort of system extension or an application? Thanks
I am familiar with http://www.unsanity.com/ape/, but I would like to not depend on someone else's software.
can i use ReplaceGestalt ???
-scott
 
Application Enhancer, or your own clone thereof, is currently the only way to patch arbitrary code in running applications. In OS X, the old Macintosh Toolbox does not exist in the way it used to, and no application is allowed to touch another's process space. At the very minimum, you would need to use libpatch, APE or your own clone, which would need to be installed by the user as root.
 
Back
Top