• 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: "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


References: 
 >detecting the USB drives (From: "Gurmit Teotia" <email@hidden>)
 >Re: detecting the USB drives (From: John Harte <email@hidden>)

  • Prev by Date: Re: NSView disable anti-aliasing ?
  • Next by Date: Re: NUL characters in NSString cause unexpected results
  • Previous by thread: Re: detecting the USB drives
  • Next by thread: Yielding an NSThread-started thread
  • Index(es):
    • Date
    • Thread