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

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

  • Follow-Ups:
    • Re: Introspecting the current method
      • From: Ken Thomases <email@hidden>
    • Re: Introspecting the current method
      • From: Dave Keck <email@hidden>
    • Re: Introspecting the current method
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Parsing common elements between xml documents
  • Next by Date: Re: Introspecting the current method
  • Previous by thread: Re: iphone help - saving data
  • Next by thread: Re: Introspecting the current method
  • Index(es):
    • Date
    • Thread