Re: [Pyobjc-dev] Import PyObjC Class/Module into Objective-C
Brought to you by:
ronaldoussoren
|
From: Barry W. <bar...@gm...> - 2008-10-14 03:36:27
|
Mike, The only way I know how to instantiate a class defined in python from within Objective-C land is to compile the python code into a loadable bundle using py2app and then load that bundle from within Objective-C using [NSBundle load]. I've attached an example setup.py that will build a loadable bundle from a python file, 'example.py'. Barry On Mon, Oct 13, 2008 at 8:17 PM, Mike Stathopoulos <ms...@ho...> wrote: > > Hi, > > Documentation on PyObjC is pretty sparse. I want to instantiate PyObjC classes in Objective-C objects. > > Any docs or example code would be much appreciated. > > If there's no documentation floating around out there, which header files in the framework should I get more aquatinted with? > > Many thanks, > Mike > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |