Are there any libraries that work in Objective C for zipping entire folders (and decompressing them)? I have looked at some of them by searching but they look like they require adding files individually and some of them supposedly crash…
It looks like this library might work:
http://bitbucket.org/dchest/osxzip/overview
I don’t know if it supports folders, however. Anyone know if it does or have any other libraries that support zipping folders? Even sample code for interacting with the command line libz would be fine with me…
You could use
NSTaskto run the command linedittoprogram. Be sure to look at thedittoman page for the right combination of flags to get Finder-compatible zipping.