• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Discovering where a method was called from within the method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Discovering where a method was called from within the method
      • From: Nicko van Someren <email@hidden>
    • Re: Discovering where a method was called from within the method
      • From: "I. Savant" <email@hidden>
    • Re: Discovering where a method was called from within the method
      • From: Christian Stieber <email@hidden>
  • Prev by Date: Re: Localization
  • Next by Date: Re: Getting the info from the Apple documentation -- Re: New Cocoa w/ CoreData book
  • Previous by thread: Re: Saving Issue with Core Data
  • Next by thread: Re: Discovering where a method was called from within the method
  • Index(es):
    • Date
    • Thread