In this question I was looking for a way to ensure that a variable is of a certain type using a define. But sometimes I have this situation:
- (void) theSitu
When you get the arguments of a method (using method_copyArgumentType as mentioned in the other answer), the "type" it returns is either a C type (like int, float, etc) or just Object (returned as a "@"). Sadly it's not possible to get the objective-C type that a method is expecting — that information is lost when you compile.
Answer to a similar problem found here.