Re: Class Introspection with class_copyMethodList and class methods.
Re: Class Introspection with class_copyMethodList and class methods.
- Subject: Re: Class Introspection with class_copyMethodList and class methods.
- From: Kevin Meaney <email@hidden>
- Date: Tue, 26 Aug 2014 15:21:59 +0100
I think you might need objc_getMetaClass.
See https://github.com/nst/RuntimeBrowser/blob/master/model/ClassDisplay.m
For how it is used.
Kevin
On 26 Aug 2014, at 15:06, Alex Zavatone <email@hidden> wrote:
> I've been using the obj runtime to dump class methods, protocols, Ivars and properties for documentation, but when using class_copyMethodList I noticed that only class instance methods are returned, no class methods declared with a + are returned at all.
>
> I scanned the runtime docs and can't see how to get the class methods to be returned using the runtime.
>
> Any ideas on how to handle this?
>
> Using 10.8.5 and iOS 7.1 in Xcode 5.1.1
>
> Thanks in advance.
> _______________________________________________
>
> 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
_______________________________________________
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