IOPrintSuperClasses

Last Revision:
Version 1.1, 2005-08-17
Updated to produce a universal binary. No code changes were required. Separately, updated to use IOObjectCopySuperclassForClass, which was introduced in Mac OS X 10.4.
Build Requirements:
Xcode 2.1
Runtime Requirements:
Mac OS X 10.2 or later

The sample is a trivial example of using the I/O Kit registry, but it also represents a useful tool for exploring the I/O Kit class hierarchy. Given the name of a class, this tool will print all of the super-classes of that class. For example, if you ask it for the super-classes of IOUSBInterface, the tool will print IOUSBNub, IORegistryEntry, IOService, and OSObject.