PDA

View Full Version : How to receive the list connected USB Flash drive?




DeDMakar
Apr 4, 2008, 05:33 AM
How to receive the list connected USB Flash drive and a way to one of them? What to use functions?



wrldwzrd89
Apr 4, 2008, 07:52 AM
What language are you programming in? If you're writing Cocoa apps in Objective-C, then NSFileManager (http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html) functions are what you'll need to call.

The File Manager (http://developer.apple.com/documentation/Carbon/Reference/File_Manager/Reference/reference.html) is the equivalent API in Carbon.

DeDMakar
Apr 9, 2008, 02:22 AM
Thanks.:)
I use NSArray *arVolumes = [[NSWorkspace sharedWorkspace] mountedRemovableMedia];