Discovering where a method was called from within the method
Discovering where a method was called from within the method
- Subject: Discovering where a method was called from within the method
- From: Philip Dow <email@hidden>
- Date: Thu, 20 Apr 2006 10:34:00 +0200
I imagine something like this has been addressed before, but I don't
know what to search for as I'm not sure what this is called. Maybe a
stack trace? The scenario is as follows:
I am changing a custom object's variable from an NSData object to an
NSAttributedString object. I have accessors and setters for both.
Everywhere else in the program, I need to update the code to access
the new attributed string methods rather than those for the data object.
Because I can convert an attributed string to rtfd data, I can still
call the methods that had been using the data object and just convert
from the string on the fly. This makes it possible to update my code
slowly and carefully. However, I need to know when the data accessors
and setters are being called. Knowing where they are used, I can
eventually fade them out completely.
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.
-Phil
_______________________________________________
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