Re:Dissecting objc_msgSend on ARM64
by panic on Saturday July 01, 2017 @07:24PM
(#14679692)
ObjC messages are essentially Smalltalk messages and they have different semantics.
The method bodies themselves are ordinary C functions -- you can call methodForSelector: on any object to get one of its methods as a function pointer. The only problem is passing the arguments correctly.
The method bodies themselves are ordinary C functions -- you can call methodForSelector: on any object to get one of its methods as a function pointer. The only problem is passing the arguments correctly.