Hi guys, so I have a strange question. I want to create Objective-C classes at runtime from a file. So, for example, I have an object application c, I then want to point it to a text file (or .hm pairs, no matter what works), and then ask the application to parse the text file and create a class at runtime (Class no object ) Of course, I would write a parser and all this, I just want to know if this is possible. I read these two articles:
http://www.mikeash.com/pyblog/friday-qa-2010-11-6-creating-classes-at-runtime-in-objective-c.html
http://www.mikeash.com/pyblog/friday-qa-2010-11-19-19-creating-classes-at-runtime-for-fun-and-profit.html
As shown, how to create a C object class at runtime, but its execution is performed using the C functions that were defined at compile time. If I can find a way to do the same, using strings to define functions that would be ideal, because then I don't need to define them at compile time.
Samuel rosen
source share