Re: detecting the USB drives
Re: detecting the USB drives
- Subject: Re: detecting the USB drives
- From: "Gurmit Teotia" <email@hidden>
- Date: Fri, 24 Nov 2006 17:24:11 +0530
Yes, I'm looking at I/O kit itself now but it is bouncing off my head :(..
Gurmit
On 11/24/06, John Harte <email@hidden> wrote:
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