NSWorkspace and unmounting USB drives
NSWorkspace and unmounting USB drives
- Subject: NSWorkspace and unmounting USB drives
- From: Buddy Kurz <email@hidden>
- Date: Fri, 11 May 2007 08:26:50 -0700
I would like to be able to unmount a USB drive after copying data to it.
When the drive is plugged in, NSWorkspace notifies my app. The device
path is "/Volumes/LaCie-Disk"
When I use [ws getFileSystemInfoForPath:devicePath ...] ,the volume
is writable but not unmountable.
[ws unmountAndEjectDeviceAtPath:devicePath] fails - not surprisingly
since the device appears to not be unmountable.
My code works fine with a thumb drive but the thumb drive is flagged
as unmountable.
There seems to be no difference in how the finder and Disk Utility
deal with the USB hard drive vs the flash hard drive.
NSWorkspace thinks differently
Any clues or reading directions would be appreciated.
Buddy Kurz
_______________________________________________
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