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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com