• 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: Open CD Tray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Open CD Tray
      • From: Charles Srstka <email@hidden>
References: 
 >Open CD Tray (From: Adam <email@hidden>)

  • Prev by Date: NSColorPanel breaks GetColor?
  • Next by Date: How to avoid warning with objc_msgSend
  • Previous by thread: Re: Open CD Tray
  • Next by thread: Re: Open CD Tray
  • Index(es):
    • Date
    • Thread