Search code examples
macoscallbackdiskimagediskarbitration

Double callback from Disk Arbitration when mounting disk image


I have a problem using DiskArbitration framework, to catch disk image mounting I register for DARegisterDiskMountApprovalCallback. The problem is that each time a disk image is mounted, the callback is called twice. Why is that and how can I solve this?


Solution

  • I ended up coding something to detect the 2nd mount and ignore it.