Wrapping a C Library with Objective-C - Function Pointers
问题 I'm writing a wrapper around a C library in Objective-C. The library allows me to register callback functions when certain events occur. The register_callback_handler() function takes a function pointer as one of the parameters. My question to you gurus of programming is this: How can I represent an Objective-C method call / selector as a function pointer? Would NSInvocation be something useful in this situation or too high level? Would I be better off just writing a C function that has the