Re: Where to find _objc_insertMethods
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