开发者

Download .dmg file in Cocoa

开发者 https://www.devze.com 2023-01-04 11:34 出处:网络
How can I 开发者_开发百科download and open a .dmg file using cocoa or applescriptTry NSURLDownload or NSURLConnection. Google also answers the question handily if you leave out the \"dmg\" part and go

How can I 开发者_开发百科download and open a .dmg file using cocoa or applescript


Try NSURLDownload or NSURLConnection. Google also answers the question handily if you leave out the "dmg" part and go more generic.


As @Joshua said, you can use NSURLDownload or NSURLConnection to retrieve the file. To mount it, run an NSTask that executes hdiutil attach /path/to/downloaded/file.dmg.

0

精彩评论

暂无评论...
验证码 换一张
取 消