• 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: Introspecting the current method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Introspecting the current method


  • Subject: Re: Introspecting the current method
  • From: Jack Nutting <email@hidden>
  • Date: Mon, 19 Apr 2010 09:37:35 +0200

On Mon, Apr 19, 2010 at 9:27 AM, Jean-Daniel Dupas
<email@hidden> wrote:
> It is fine for most cases, but __func__ is defined at compile time, and so, does not log the real type of the instance (if this is a subclass).
>

Hmmm, that's too bad.  Seems to be the case for __FUNCTION__ and
__PRETTY_FUNCTION__ as well;  All of them produce the appropriate + or
-, but they also all show the name of the class where the method is
defined, even if called on a subclass.

--
// jack
// http://nuthole.com
// http://learncocoa.org
_______________________________________________

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: 
 >Introspecting the current method (From: Dave DeLong <email@hidden>)
 >Re: Introspecting the current method (From: Graham Cox <email@hidden>)
 >Re: Introspecting the current method (From: Dave DeLong <email@hidden>)
 >Re: Introspecting the current method (From: Michael Ash <email@hidden>)
 >Re: Introspecting the current method (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Introspecting the current method
  • Next by Date: blocks and autorelease weirdness
  • Previous by thread: Re: Introspecting the current method
  • Next by thread: Re: Introspecting the current method
  • Index(es):
    • Date
    • Thread