Skip navigation.
 
mlRe: Understanding the inner workings: getting to know how functions are called
FROM : Kyle Sluder
DATE : Tue Jan 22 17:26:48 2008

On 1/22/08, Mattias Arrelid <<email_removed>> wrote:
> Could anyone point me in the right direction here? I'm open to all
> suggestions...


I'd create a subclass of NSProxy, override
-methodSignatureForSelector: and -forwardInvocation: appropriately
(perhaps putting a breakpoint in -forwardInvocation: that prints a
backtrace and auto-continues), and return an instance of this from
your real object's -init method.  If you do it right, clients of your
class should be none the wiser.

HTH,
--Kyle Sluder