Hi, so how do you pass function pointers via class/instance methods in obj-c?
It should be possible, right? I mean, IMP is a typedef for a function pointer, so something like
is valid.
So how do you do other types of function pointers? I mean... I guess I could typedef all the function pointer types I want, but that just sounds really ugly.
It should be possible, right? I mean, IMP is a typedef for a function pointer, so something like
Code:
- (void) foo:(IMP)bar;
So how do you do other types of function pointers? I mean... I guess I could typedef all the function pointer types I want, but that just sounds really ugly.