Intercept method call in Objective-C

Viewed 13935

Can I intercept a method call in Objective-C? How?

Edit: Mark Powell's answer gave me a partial solution, the -forwardInvocation method. But the documentation states that -forwardInvocation is only called when an object is sent a message for which it has no corresponding method. I'd like a method to be called under all circumstances, even if the receiver does have that selector.

10 Answers
Related