On Feb 11, 2005, at 12:26 PM, Roger Binns wrote:
Uh, no it isn't. A fair share of the IOKit examples are pure C or C++.All the example code is in Objective C. Quite simply there is far too steep a learning curve to get through these layers be it Objective C or pseudo objects in C plus mapping into Python land.
Ok, more accurately the examples that were looking at hierarchies
are in Objective C. And I'm sure that working with IOKit, in C or Objective C, once you have done it a few times is quick and easy. If you haven't then a time investment is needed to understand the docs, the examples, the types, actually write code that works, map it into Python etc.
There's a command-line application called ioreg that prints the hierarchy. It is written in C, so it's only using IOKit, CoreFoundation, and POSIX:
http://www.opensource.apple.com/darwinsource/10.3.8/IOKitTools-38/ ioreg.tproj/
-bob
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig