Re: Notification of CD-ROM inserted

2010-11-21 Thread Dave Keck
I'd use either NSWorkspaceDidMountNotification or DARegisterDiskAppearedCallback() of the DiskArbitration framework. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Notification of CD-ROM inserted

2010-11-21 Thread Sherm Pendley
On Wed, Nov 17, 2010 at 9:53 AM, Bilel Mhedhbi wrote: > > I want my application to be notified when a CD-ROM is inserted. Watch for NSWorkspaceDidMountNotification notifications. See: < http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Clas

Notification of CD-ROM inserted

2010-11-21 Thread Bilel Mhedhbi
Hi there, I want my application to be notified when a CD-ROM is inserted. I came with two solutions: watching /etc/fstab (but the os doesn't use it) and watching the /Volumes/ directory. What can you advice me?? Thanks! ___ Cocoa-dev mailing list (C