Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.2

Posted: 2006-10-16

Build Requirements: Xcode 2.2.1 or later.

Runtime Requirements: Mac OS X 10.2 or later.

View Source Code:

Download Sample Code (“USBPrivateDataSample.zip”, 19.9K)



Description

Demonstrates how to use IOKitLib and IOUSBLib to set up asynchronous callbacks when a USB device is attached to or removed from the system. It also shows how to associate arbitrary data with each device instance.

This sample code has been updated to include a project that produces a universal binary.

Document Revision History

Date Notes
2006-10-16Updated to produce a universal binary. Modernized and incorporated bug fixes.
2003-01-14Demonstrates notifications when a USB device is hotplugged and associating arbitrary data with each device.
Did this document help you? Yes It's good, but... Not helpful...