Is there any library to create a disk image from Cocoa, or is it only possible through Finder?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not aware of a way to do it directly from Cocoa (though there might be one) but there is another way. The
hdiutiltool can be used from the Terminal, and you can call it from your program as well. Here’s a sample usage for creating a disk image from a folder:Seems that http://www.cocoabuilder.com/archive/cocoa/152742-disc-image-apis.html describes the same problem.