how to detect USB insertion in imac using objective c? im trying to write an app running in background to detect if there is any usb being inserted to the imac. is there any code to do that in objective c?
+1
A:
OS X should automatically do this for you, unless you are trying to look for something specific. There is a file floating around the net, called "MobileDevice.h", that should give you some idea of where to start on checking if a device is inserted into USB (whether it's connected or not).
Here is a link to one place, as there are many others.
I hope this helps, as it has a USB listener, that you may be able to use.
PumaSpeed
2010-08-05 13:33:01