Re: detecting the USB drives
Re: detecting the USB drives
- Subject: Re: detecting the USB drives
- From: John Harte <email@hidden>
- Date: Thu, 23 Nov 2006 21:57:44 -0500
On Nov 21, 2006, at 7:40 AM, Gurmit Teotia wrote:
Using above code I'm only able to detect the Usb drive which mount on
/Volumes/USB DISK... but not those which mount on /Volumens/Flash
Drive; these drives only have writable attribute.
Could someone suggest a better approach to this issue?
Regards,
Gurmit
Have you looked at the IOKit? You can create a matching dictionary and
get callbacks when a matching device appears or disappears. You can
use /Developer/Applications/Utilities/IORegistryExplorer to see what
is available for matching. I use it to detect magneto optical drives
and get their BSD name.
John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden