Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call from Objective-C into Python

bbum posted an outline of how to do this, but I'm unable to complete the details. Where does the Python code go, and how will my Objective-C code know about it? How would I do it compiling on the command line?

like image 319
telliott99 Avatar asked Dec 07 '22 05:12

telliott99


1 Answers

Source here:

Calling Python From Objective-C

I have posted a full explanation of how to do this to my weblog as it is quite a bit longer than something I would post here.

The abstract summary remains the same: use an abstract class to provide the type information necessary to make the C compiler happy and the metadata necessary to make the bridge happy.

like image 195
bbum Avatar answered Jan 02 '23 03:01

bbum