• 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: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath


  • Subject: Re: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
  • From: James Bucanek <email@hidden>
  • Date: Mon, 3 May 2010 08:13:09 -0700

Jim O'Connor <mailto:email@hidden> wrote (Sunday, May 2, 2010 11:27 PM -0800):

My alternative is to call system with hdiutil detach, which is ugly.

I would have thought that the alternative would be to get the volume's FSVolumeRefNum and simply call FSEjectVolumeSync(), which is ultimately what (I believe) NSWorkspace does.


This would require about eight lines of code, and really isn't that ugly.

--
James Bucanek

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
      • From: Jim O'Connor <email@hidden>
References: 
 >differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath (From: Jim O'Connor <email@hidden>)

  • Prev by Date: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
  • Next by Date: Re: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
  • Previous by thread: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
  • Next by thread: Re: differences between NSWorkspace unmountAndEjectDeviceAtURL and unmountAndEjectDeviceAtPath
  • Index(es):
    • Date
    • Thread