Do you know you to unmount a drive without ejecting it. NSWorkspace has some methods to unmount drives but it also eject them.
Any idea ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am doing it as follows and it un-mounts the drive but doesn’t eject it.
(Actually I want to eject the disk, I can only un-mount the disk. 😛 Please share how to eject a disk.)
This is the code I am still working on and is under development and testing.
I am creating the “path” manually. You can use (and share) a better method to get the path of volume in a generic way. Perhaps this answer has hints of doing it the right way.
I’ll update when my development is refined and complete.