• 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
Re: Where to find _objc_insertMethods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to find _objc_insertMethods


  • Subject: Re: Where to find _objc_insertMethods
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 6 Jun 2005 14:56:53 -0400

On Jun 6, 2005, at 1:42 PM, Bill Greene wrote:

To add methods to classes, call class_addMethods() instead.

Will that work for categories? I use class_addMethods() for the instance and class methods.

Of course class_addMethods() will work for categories - that's precisely what it's intended for. A pointer to the initial set of methods is passed as part of the objc_class structure when you call objc_addClass(). If it weren't for categories, the runtime wouldn't need class_addMethods() at all.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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


References: 
 >Where to find _objc_insertMethods (From: Bill Greene <email@hidden>)
 >Re: Where to find _objc_insertMethods (From: Greg Parker <email@hidden>)
 >Re: Where to find _objc_insertMethods (From: Bill Greene <email@hidden>)

  • Prev by Date: Re: NSOutlineview, data changing from outside the outlineview's events
  • Next by Date: 'Factory values' and NSUserDefaultsController + NSUserDefaults not syncing...
  • Previous by thread: Re: Where to find _objc_insertMethods
  • Next by thread: Re: Where to find _objc_insertMethods
  • Index(es):
    • Date
    • Thread