views:

445

answers:

3

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?

+5  A: 
The MYYN
ZipKit seems to better name its methods than ZipArchive (even if I don't understand why it prefixes its addition methods).
kiamlaluno
Prefixing or suffixing category methods help avert name collisions if Apple ever adds a method in Cocoa under the same name.
Peter Hosey
+2  A: 

Check out http://code.google.com/p/ziparchive/. It's a class for zipping files. Google is your friend!

Ben Gottlieb
+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
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
It uses the Archive Utility.
Peter Hosey