• 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
NSWorkspace and unmounting USB drives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSWorkspace and unmounting USB drives
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Re: Objective-C/Cocoa reference manual
  • Next by Date: changing the default color for text drawing
  • Previous by thread: Re: Hang when Nib is loaded
  • Next by thread: Re: NSWorkspace and unmounting USB drives
  • Index(es):
    • Date
    • Thread