Re: Listening to Eject command

2009-07-30 Thread Rippit the Ogg Frog
Ed Wynne wrote: you want DA for DiskArbitration. DiskArbitration is unfortunately rather poorly documented. It will take some trial and error to figure out how to make it work for you. But there are some developer blogs that yield some insight... ... unfortunately the bookmarks I had fo

Re: Listening to Eject command

2009-07-29 Thread Ed Wynne
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 eject

Re: Listening to Eject command

2009-07-29 Thread Dave Keck
I believe you can use even taps for this. Check out: http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/c/func/CGEventTapCreate ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl