• 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
Re: Get the name of the method that called a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the name of the method that called a method


  • Subject: Re: Get the name of the method that called a method
  • From: Dave Keck <email@hidden>
  • Date: Mon, 20 Apr 2009 21:12:19 -1000

Hey,

The first thing that comes to mind is throwing an exception, catching
it, then accessing the NSException's -callStackReturnAddresses. From
there, you'll need to turn the addresses into symbol names. I googled
it a little bit and found these references:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/backtrace_symbols.3.html
http://www.restoroot.com/Blog/2008/10/18/crash-reporter-for-iphone-applications/
http://furbo.org/2008/08/08/symbolicatifination/

David
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Get the name of the method that called a method (From: Alex Kac <email@hidden>)

  • Prev by Date: How to play a sound file by Double-click in a tableview?
  • Next by Date: Re: How to play a sound file by Double-click in a tableview?
  • Previous by thread: Get the name of the method that called a method
  • Next by thread: Re: Get the name of the method that called a method
  • Index(es):
    • Date
    • Thread