08 Jul 2004
macosx code injecting
there's a great interview with rich wareham
(cambridge phd student, desktop manager
developer) on hacking macosx. one of the very interesting bits is using mach_inject
to inject code into functions at run time. combined with mach_override
you can completely override the function.
very neat, there are also other techniques, like method swizzling
so you can remap messages (eg. methods) and class posing
which means you ask NSObject to make you become an existing class.
You can reply to me about this on Twitter: