FROM : Mattias Arrelid
DATE : Tue Jan 22 17:05:46 2008
Hi everyone,
Sometimes when I subclass an existing Cocoa class, I wonder how its
methods are called; when in time, from what other function (possible
from another instance of another class) etc.
The "idiot" way of implementing this could of course be to add _all_
method names of the class in question and then just call [super
methodName] in each method, and then use some debug macro before and
after that call that prints the name of the method in question. That
really isn't that productive and seems like a waste of time.
Could anyone point me in the right direction here? I'm open to all
suggestions...
Regards
Mattias
DATE : Tue Jan 22 17:05:46 2008
Hi everyone,
Sometimes when I subclass an existing Cocoa class, I wonder how its
methods are called; when in time, from what other function (possible
from another instance of another class) etc.
The "idiot" way of implementing this could of course be to add _all_
method names of the class in question and then just call [super
methodName] in each method, and then use some debug macro before and
after that call that prints the name of the method in question. That
really isn't that productive and seems like a waste of time.
Could anyone point me in the right direction here? I'm open to all
suggestions...
Regards
Mattias






Cocoa mail archive

