Re: Ejecting a disk
Re: Ejecting a disk
- Subject: Re: Ejecting a disk
- From: John Hörnkvist <email@hidden>
- Date: Wed, 31 Oct 2001 00:39:04 +0100
On Wednesday, October 31, 2001, at 12:19 AM, Luke Sands wrote:
Dear Cocoa Developers,
Is it possible to eject all or one of the mounted disks from the
computer from cocoa without using Apple Script commands? If anyone
knows how to do it please help....
[[NSWorkspace sharedWorkspace] unmountAndEjectDeviceAtPath:path];
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com