Are there Objective-C classes that are equivalent to the ones contained in the Java package java.util.zip
?
Is to execute a CLI command the only alternative?
views:
445answers:
3
+5
A:
There is a zip-framework, http://code.google.com/p/zip-framework/, but it seems to be in an early (version 0.1) stage.
Others answers on cocoadev: http://www.cocoadev.com/index.pl?ZipArchiveLibraryForCocoa
One answer from there: ZipKit, http://bitbucket.org/kolpanic/zipkit/wiki/Home
The MYYN
2009-12-18 13:26:53
ZipKit seems to better name its methods than ZipArchive (even if I don't understand why it prefixes its addition methods).
kiamlaluno
2009-12-18 13:52:54
Prefixing or suffixing category methods help avert name collisions if Apple ever adds a method in Cocoa under the same name.
Peter Hosey
2009-12-19 07:17:25
+2
A:
Check out http://code.google.com/p/ziparchive/. It's a class for zipping files. Google is your friend!
Ben Gottlieb
2009-12-18 13:27:47
+4
A:
Aside from reading and writing zip archives in your own process, there's no shame in using NSTask to run zip
and unzip
.
Peter Hosey
2009-12-18 23:28:56
Using this method would allow to not change the code to support new features. I wonder what exactly does Finder when you select a file/directory, and then select "Compress" from the menu. Which executable does Finder uses?
kiamlaluno
2009-12-19 06:59:03