Closed dkocher closed 3 years ago
@dkocher Just curious, were you able to build and use rococoa under Apple silicon? I see that java-native-access/jna#1238 has been closed.
There are several things to be sorted out
objc_msgSend
on Apple silicon to be patched in MsgSendHandlerobjc_msgSend
. To fix dynamic-dispatching issues in your code, define a type-safe function pointer instead of calling objc_msgSend directly. Refer to Enable Strict Type Enforcement for Dynamic Method Dispatching
- Fix several test failures in Rococoa possibly caused by not type safe calling
objc_msgSend
.To fix dynamic-dispatching issues in your code, define a type-safe function pointer instead of calling objc_msgSend directly. Refer to Enable Strict Type Enforcement for Dynamic Method Dispatching
Not sure if this is actually an issue with JNA using libffi.
Additional helpful documentation in Managing Functions and Function Pointers .
Dependent on https://github.com/java-native-access/jna/pull/1238