How can I format an USB flash drive using cocoa frameworks or carbon? Is there any functions to make it?
You could use diskutil via NSTask. You may have to authorize the task.