Re: Listening to Eject command
Re: Listening to Eject command
- Subject: Re: Listening to Eject command
- From: Ed Wynne <email@hidden>
- Date: Thu, 30 Jul 2009 00:04:44 -0400
On Jul 29, 2009, at 9:12 PM, Farooq zaman wrote:
For some reasons, I need to customize (or listen to) Eject command.
I want this to happen before system actually do something with the
device i.e eject disc or shows up some error. I want to perform some
operation on disc before system ejects it.
I tried to do it using DRNotificationCenter but that sends
notification when the disc has already been ejected.
DR is for DiscRecording, you want DA for DiskArbitration.
Specifically, either DARegisterDiskUnmountApprovalCallback() or
DARegisterDiskEjectApprovalCallback().
-Ed
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden