Re:How Swift Achieved Dynamic Linking Where Rust Couldn't
by woadwarrior01 on Saturday November 09, 2019 @05:59AM
(#21490786)
(myObject as! SomeProtocol).someMethod()
The `objc_msgSend()` call you're observing in this case is likely a call to `NSObject::confirmsToProtocol`[1], are you absolutely certain that NSObject is not involved anywhere in your class hierarchy?
[1]: https://developer.apple.com/documentation/objectivec/nsobjec...