Get the sender of the message for an NSInvocation
问题 How do I get the sender of the message wrapped in an `NSInvocation? I'm in an object, and I've just received an invocation in my forwardInvocation: . Is there any way to know who sent me the message in the first place? 回答1: No. Information about the sender is not available (unless you explicitly add an sender:self argument). See also this thread http://www.cocoabuilder.com/archive/cocoa/194746-is-the-sender-of-an-obj-method-implied-in-the-destination-method.html: It isn't explicitly available