Q. How to mount an apple disk image programmatically ?
My approach is similar to use disk arbitration for mounting as shown here. I prefer not to use any command line tool.
The un-mount and eject works perfectly but the mount needs a BSD name(generally used for block file of disk). I've seen the source code for DiskArbitrator also, this tool uses hdiutil
in background to create the block file for the DMG.
Is there any other method/framework to create the block file for my disk image so that i can use it to mount the DMG?
I've already seen this this