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 (“USBPrivateDataSample.zip”, 19.9K)
Download Sample (“USBPrivateDataSample.dmg”, 79.7K)



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: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.