Introspecting the current method
Introspecting the current method
- Subject: Introspecting the current method
- From: Dave DeLong <email@hidden>
- Date: Sun, 18 Apr 2010 18:14:01 -0600
Hi everyone,
I was just writing some code and asked myself a question that I don't know the answer to, and a quick look in the documentation didn't reveal anything promising.
If I'm inside a method, is there a way to know at runtime whether that method is a class or an instance method? Currently the only way I though of to do this is to see if "self" is a Class object or not, but I was wondering if there's a more reliable way to determine this.
Any ideas?
Thanks,
Dave
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