• 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: Listening to Eject command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Listening to Eject command
      • From: Rippit the Ogg Frog <email@hidden>
References: 
 >Listening to Eject command (From: Farooq zaman <email@hidden>)

  • Prev by Date: Re: UIWebView: prevent from displaying menu, Copy.
  • Next by Date: Re: Cahnging bgColor of a UIView not working.
  • Previous by thread: Re: Listening to Eject command
  • Next by thread: Re: Listening to Eject command
  • Index(es):
    • Date
    • Thread