Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.1

Posted: 2005-08-17

Build Requirements: Xcode 2.1

Runtime Requirements: Mac OS X 10.2 or later

View Source Code:

Download Sample Code (“IOPrintSuperClasses.zip”, 31.9K)



Description

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.

Document Revision History

Date Notes
2005-08-17Updated to produce a universal binary. No code changes were required. Separately, updated to use IOObjectCopySuperclassForClass, which was introduced in Mac OS X 10.4.
2003-01-14Given the name of a class, this tool will print all of the super-classes of that class.
Did this document help you? Yes It's good, but... Not helpful...