title: Is there way to force eject the drive automatically in Cocoa
body: <p>I want to force eject the drive in Cocoa. I found the way as below:</p>
  
  <ol>
  <li>I will use the command to eject the drive: <code>hdiutil eject -force /Volumes/TRAVELDRIVE</code></li>
  <li>Then I will execute this command terminal from Cocoa app by using <code>NSTask</code>.</li>
  </ol>
  
  <p>Can I do that by using above steps? If you have best solution, please give me any ideas. Thanks in advance.</p>