• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: detecting the USB drives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: detecting the USB drives
      • From: "Gurmit Teotia" <email@hidden>
References: 
 >detecting the USB drives (From: "Gurmit Teotia" <email@hidden>)

  • Prev by Date: ObjectAlloc tool and framework debugging
  • Next by Date: NSString, path and "/" char
  • Previous by thread: detecting the USB drives
  • Next by thread: Re: detecting the USB drives
  • Index(es):
    • Date
    • Thread