Re: Eject Key Code
Re: Eject Key Code
- Subject: Re: Eject Key Code
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 27 Jun 2006 09:37:02 +0200
On 26 Jun 2006, at 23:29, Damien Bobillot <damien.bobillot.2002
email@hidden> wrote:
Casey Fleser wrote :
Check this post:
http://www.cocoabuilder.com/archive/message/cocoa/2004/10/5/118853
The relevant bits of which are:
[really interesting code]
And the tiebreaker question is ;) :
Is there a more direct way to open the CD tray, by using the IOKit by
instance ? It's a bit tricky to simulate a keystroke just to open the
CD tray. If I recall well, the command line tool hdiutil may be used
to open it.
/System/Library/Frameworks/DiscRecording.framework/Versions/A/
Frameworks/DiscRecordingEngine.framework/Versions/A/Headers/DRDevice.h
has an method: - (BOOL) openTray; // Commands the device to open
it's tray.
This might be even easier than using the IOKit.
Kind regards,
Gerriet.
_______________________________________________
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