Message Forwarding: Performance Trade-offs Between resolveInstanceMethod: and forwardInvocation:
The Objective-C runtime provides a multi-stage pipeline for handling missing selectors. When a message is sent to an object that does not respond to the selector, the runtime first attempts dynamic method resolution via resolveInstanceMethod: , followed by the forwardInvocation: mechanism. While resolveInstanceMethod: allows for the runtime synthesis of a me