Re: Open CD Tray
Re: Open CD Tray
- Subject: Re: Open CD Tray
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 5 Oct 2004 02:02:51 +0200
At 17:41 Uhr -0400 04.10.2004, Adam wrote:
How can I open the CD Tray with cocoa / objective-c. I would like to
recreate the functionality of the iTunes eject button.
One option, which may not be very elegant, is using the drutil
command-line tool:
FILE* str = popen("drutil tray open","r");
pclose(str);
It had a man page back at MacHack, when it was used by one (look
away, quick!) keynote (you can look again) speaker to great effect.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden