4 ms·
No. Your message sends all end up going to the same place where you pass in (a) the target of the send (b) and the message you were sending. This handles dispat
by jsolson 17y ago
No. Your message sends all end up going to the same place where you pass in (a) the target of the send (b) and the message you were sending. This handles dispatch to wherever that's supposed to end up. Objective-C itself handles it this way using objc_msgSend.
In fact... since MacRuby is built entirely on top of Cocoa primitives, it wouldn't surprise me if they've translated all Ruby messages into Objective-C messages and just use objc_msgSend for all of this sort of dispatch.
For an interesting exploration of this particular call, check out this blog post: http://ridiculousfish.com/blog/archives/2005/08/01/objc_msgsend/ http://ridiculousfish.com/blog/archives/2005/08/01/objc_msgs...