Re: [Pyobjc-dev] Using OS-X frameworks from Python
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2008-02-10 17:10:43
|
On 8 Feb, 2008, at 20:06, Arnar Birgisson wrote: > Hello there, > > Forgive me if I'm in the wrong place asking this. > > I have an OS-X Framework (with source code) and I need to use the > functionality of it from Python. The framework in question is > WiiRemote.framework that provides events from a Wii remote through > delegates (unfortunately I'm not familiar with Objective-C). > > After digging around for a while, I'm having trouble finding answers > to the following: > > What are my options here? You're on the right list of this, PyObjC is specificly designed for this task. > > Is it possible to use the compiled framework directly with ctypes? Possibly, but using PyObjC would be better. > > Can I use it from a custom extension module (written in C)? > Can I write a Python extension module in Objective-C? Yes to both, but that's not really necessary. Both PyObjC 1.x and PyObjC 2.x (shipping with Leopard) have tools to automaticly create a python wrapper from header files. Those are a bit tuned to the way Apple writes headers, but with some luck work with the WiiRemote headers as well. Ronald > > > thanks, > Arnar > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |