[Pythonmac-SIG] embed python in cocoa

Georg Seifert georg.seifert at gmx.de
Mon May 19 15:25:03 CEST 2008


I didn’t make myself clear what I want to do:

I have a app written in ObjectC and want to embed python to be able to  
run scripts from within my app. The user should be abel to write his  
own scripts to modify the model data. So I need to expose the data- 
classes to python.

for c++ it is described here:
http://www.python.org/doc/ext/extending-with-embedding.html

but how I do this with ObjectC classes?

Thanks
Georg

Am 19.05.2008 um 15:15 schrieb Jack Nutting:

>> Can anyone give me some advice how I wrap my cocoa classes to be  
>> able to
>> access them from within the python script?
>>
>> I found the examples on how to wrap c/c++ functions but nothing about
>> ObjectC.
>
>
> You'll want to use PyObjC:
>
> http://pyobjc.sourceforge.net/
>
> Already included in Leopard, so you may not need to even download
> anything unless you need a newer version.
>
> -- 
> // jack
> // http://www.nuthole.com



More information about the Pythonmac-SIG mailing list