Is there any equivalent in Obj-C to NSSelectorFromString, but for getting function pointers from NSStrings?
Specifically I'd like to just have a means of typing CG commands into a text field and have them rendered in a view next to it as you type. I realize I could parse the text for the functions and look them up, but that requires me copying every function in CG, and when more get added later, I'd have to support those, too. I was hoping to have something simple where it just grabs the function name and can look up the function pointer.
Thanks!
Specifically I'd like to just have a means of typing CG commands into a text field and have them rendered in a view next to it as you type. I realize I could parse the text for the functions and look them up, but that requires me copying every function in CG, and when more get added later, I'd have to support those, too. I was hoping to have something simple where it just grabs the function name and can look up the function pointer.
Thanks!