• 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: How to get the name of a method at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the name of a method at runtime?


  • Subject: Re: How to get the name of a method at runtime?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 10 Mar 2008 09:44:41 +0100

Le 10 mars 08 à 00:29, Stuart Malin a écrit :

Interesting approach, Tony.

However, __builtin_return_address isn't an object, so stringWithFormat throws an exception when given the %@ token. It should be %u (or %U ?? - I'm not sure of the difference).

You should use %p for pointer value or at least %lu. %u will break on 64 bit code.


_______________________________________________

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: 
 >Re: How to get the name of a method at runtime? (From: Stuart Malin <email@hidden>)

  • Prev by Date: Re: Raw pixel data <-> jpeg
  • Next by Date: Using Core Data with OCUnit
  • Previous by thread: Re: How to get the name of a method at runtime?
  • Next by thread: How to get this bundle with identifier
  • Index(es):
    • Date
    • Thread