Re: Introspecting the current method
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