How can I unzip a file in MacOS X Obj-C?

a 夏天 提交于 2019-12-06 10:49:22

问题


How can I unzip a file in MacOS X Obj-C? What frameworks do I need and what is the call?


回答1:


You might find something helpful here at CocoaDev or with theunarchiver. theunarchiver is a nice utility that handles many archive formats and since it's open-source, you may be able to use some of their code to do what you want, though it's LGPL, which may or may not be compatible with what you're doing.




回答2:


libz.1.2.3.dylib is the framework you should add to your project.

And use the the classes: http://code.google.com/p/ziparchive/downloads/list



来源:https://stackoverflow.com/questions/2624767/how-can-i-unzip-a-file-in-macos-x-obj-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!