Interfacing with Obj C
Monkey Targets Forums/iOS/Interfacing with Obj C
| ||
I have my own static libs, how can I link to them? |
| ||
Load your game project [game.build/ios/game.xcodeproj] into Xcode and add them there. Once you save the project monkey will not overwrite the modifications as you develop your game further. |
| ||
Thanks Si, what is calling convention from within Monkey? |
| ||
It doesn't have one / doesn't care so whatever native decl is imported by monkey will be what the compiler uses. The extern declaration you have in the monkey code is used purely for syntax checking at the time of translation. |
| ||
This is going to take a bit of getting used to! :P Is there a small real-world example of a Monkey source, using an external lib, defining some external function and sending some types back and fourth? |
| ||
I was able to get things working by looking at the mojo project and the ios code. Pretty sure mark recommended that as the way to do things for now. |