I want to point to a plain ole C-function from Objective-C. Specifically, I am pointing to some OpenGL functions. I want to point to this function from an entry in an NSDictionary.
So is there a way to turn a C function pointer into a SEL?
Thanks,
Doug
You could wrap it in an
NSValue.Then when you extract it later, just call
-pointerValueto get a void* pointer back (which you can cast to your function type).