Re: Introspecting the current method
Re: Introspecting the current method
- Subject: Re: Introspecting the current method
- From: Dave DeLong <email@hidden>
- Date: Sun, 18 Apr 2010 20:32:34 -0600
Actually, I just found it!
http://developer.apple.com/mac/library/documentation/DeveloperTools/gcc-4.0.1/cpp/Standard-Predefined-Macros.html#Standard-Predefined-Macros
This will certainly suit my purposes what I was needing. However, the check of [self class] == self is still really useful.
Thanks everyone!
Dave
On Apr 18, 2010, at 8:26 PM, Dave DeLong wrote:
> That's amazing! Is there some sort of coherent list of magic identifiers somewhere?
>
> Dave
>
> On Apr 18, 2010, at 8:21 PM, Michael Ash wrote:
>
>> The magic __func__ identifier produces a C string which I believe, in
>> an ObjC method, has exactly the format you're looking for.
> _______________________________________________
>
> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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