I don’t think you will need something like this in objective-c.
How you apply polymorphism in C. This is similar to an interface definition. Some frameworks (including the kernel file system?) Would expect you to pass a structure with your functions that the infrastructure will call when an event occurs.
If you really need to, I think you could use C ++ and struct / classes from objective-c instead of using simple C structures with function pointers, but you should be fine with objective-c.
source
share