• 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
objc_addMethods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

objc_addMethods


  • Subject: objc_addMethods
  • From: Tim Conkling <email@hidden>
  • Date: Thu, 11 Nov 2004 17:32:35 -0500

Does anybody have any sample code showing the proper use of objc_addMethods to dynamically add methods to a class at runtime?

This is sort of me just being lazy, as I have the documentation in front of me, but I can't figure out certain things like how to correctly fill in an objc_method struct (what data goes into the method_imp field, for example?).

Are there any hazards involved in adding methods to existing classes at runtime (other than adding a method to a class that already has that method defined?)

Much appreciated,
Tim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: objc_addMethods
      • From: "b.bum" <email@hidden>
  • Prev by Date: [OFF-ish] Any interest in a Cocoa implementation of JXTA?
  • Next by Date: Re: OT: Bug in IB
  • Previous by thread: Re: [OFF-ish] Any interest in a Cocoa implementation of JXTA?
  • Next by thread: Re: objc_addMethods
  • Index(es):
    • Date
    • Thread