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?
I ended up coding something to detect the 2nd mount and ignore it.