Re: Discovering where a method was called from within the method
Re: Discovering where a method was called from within the method
- Subject: Re: Discovering where a method was called from within the method
- From: Christian Stieber <email@hidden>
- Date: Thu, 20 Apr 2006 10:41:30 +0200
At 10:34 20.04.2006 +0200, Philip Dow wrote:
Is it possible from within those methods find out what other objects
and methods are calling them? I need something similar to a crash
report.
Not in any simple way, I suppose.
The easiest way, as it's just to fix the source code (rather
than using this in your program?), would be to take it out
of the interface definition so the compiler will tell you
where it's used. If it's a method from the class library
(mean you can't take it out) you can do something like this:
#include <Cocoa/Cocoa.h>
#define initWithCString foo
This would turn all your initWithCString into "foo", which probably
doesn't exist as a method so the compiler will yell at you.
Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden