Re: [Pyobjc-dev] Using OS-X frameworks from Python
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2008-02-11 09:11:56
|
On Sunday, February 10, 2008, at 06:23PM, "Arnar Birgisson" <ar...@gm...> wrote: >One more thing, > >On Feb 10, 2008 5:10 PM, Ronald Oussoren <ron...@ma...> wrote: >> 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. > >Where can I find these tools? I'm running Leopard (and still using the >bundled Python distribution). I'd also appreciate links to >documentation. The tool for this is pyobjc-metadata in the pyobjc repository. There is little to no documentation at the moment. I have to wrap another 3th party framework in the near future, and will use that opportunity to write some documentation and push pyobjc-metadata to pypi (making it easier to install). In theory, a working wrapper is just one script invocation away, although the tool uses a regex-based parser to scan header files and that parser might be easy to confuse. Ronald |