Interfacing with Obj C

Monkey Targets Forums/iOS/Interfacing with Obj C

Sammy(Posted 2011) [#1]
I have my own static libs, how can I link to them?


skid(Posted 2011) [#2]
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.


Sammy(Posted 2011) [#3]
Thanks Si, what is calling convention from within Monkey?


skid(Posted 2011) [#4]
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.


Sammy(Posted 2011) [#5]
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?


JD0(Posted 2011) [#6]
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.