Find available USB devices Mac OS X
I was wondering if there was any way to see if a usb device (only specific ones) are plugged in and unplugged using objective c. All I need to know is if a device has been plugged in, such as an iPhone/iPod Touch. If not, any other devic开发者_如何学JAVAe will work
Thanks
The information in Apple's USB Device Interface Guide (see the "USB Devices on Mac OS X" and "Finding USB Devices and Interfaces" sections) and Accessing Hardware From Applications (see the "Finding and Accessing Devices" section) docs should put you on the right track.
That said, I suspect you'll need to delve below the shiny Cocoa surface into the world of I/O Kit functions and (potentially) POSIX.
精彩评论