Hi,
I want to create a plug-in system using objective-c. I am getting list of all classes in the main bundle and checking for classes derived from plug-in base.
int count = objc_getClassList(NULL, 0);
Class * buffer = (Class *)malloc(sizeof(Class) * count);
objc_getClassList(buf, count);
NSMutableArray * classNameArray = [NSMutableArray array];
for (int i = 0; i < count; i++)
{
[buf[i] isDerivedFromClass:[PluginBase class]]; //<<< I need this
NSString * classname=NSStringFromClass(buf[i]);
[classNameArray addObject:classname];
}
Is there any equivalent method for that?