Create objective-c class instance by name?
- by Mark
Duplicate: http://stackoverflow.com/questions/1034350/dynamic-class-creation-in-objective-c/1034368#1034368
Is it possible to create an instance of a class by name? Something like:
NSString* className = @"Car";
id* p = [Magic createClassByName:className];
[p turnOnEngine];
I don't know if this is possible in objective-c but seems like it would be,
Thanks