views:

34

answers:

1

Good Day,

How can I format an USB flash drive using cocoa frameworks or carbon? Is there any functions to make it?

Thanks, Vlad

+3  A: 

You could use diskutil via NSTask. You may have to authorize the task.

Joshua Nozzi
hdiutil is for disk images. You may be thinking of diskutil, which is for volumes generally and for real storage devices: http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man8/diskutil.8.html
Peter Hosey
Bah. You're right. I corrected the answer. Thanks for pointing that out.
Joshua Nozzi