• 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
Dynamically check for method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamically check for method


  • Subject: Dynamically check for method
  • From: Pierre Bernard <email@hidden>
  • Date: Wed, 6 Dec 2006 19:16:00 +0100

Hi!

How can I check at runtime if a certain method exists? Specifically: class_addIvar

Currently I use method / deallocator swizzling in categories so that I can have them add iVars to existing classes. I would like to avoid this whenever possible, but fall back to it when nothing else works.

TIA,
Pierre


Pierre Bernard http://www.bernard-web.com/pierre http://www.houdah.com



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Dynamically check for method
      • From: Keary Suska <email@hidden>
  • Prev by Date: Passing a SEL into KVC
  • Next by Date: Convert between encodings
  • Previous by thread: Re: Passing a SEL into KVC
  • Next by thread: Re: Dynamically check for method
  • Index(es):
    • Date
    • Thread