Search code examples
pythonobjective-ccocoapyobjc

How do you call PyObjC code from Objective-C?


Possible Duplicate:
Calling Python from Objective-C

I'm a long-time Python programmer and short-time Cocoa programmer. I'm just getting started with PyObjC and it's really amazing how easy it it is to get stuff done. That said, I wanted to try using pure ObjC for my controller with PyObjC models. I might be enjoy letting Python be Python and Objective-C be Objective-C. I figured it was worth a try, anyways.

Except I can't figure out or find anything about how to call Python from Objective-C, only the other way around. Can someone point me to any resources on this? (Maybe it's on the PyObjC site but I just don't know what I'm looking for?)

Edit: I'm most interested, at the basic level, in being able to call a Python module and get some native ObjC data types back.


Solution

  • Whoops, guess I should've searched a bit more:

    Calling Python from Objective-C