PDA

View Full Version : Is there a compressing and decompressing library in mac os?




MayPeng
Jun 14, 2011, 04:39 AM
Is there a compressing and decompressing library in mac os like FCI(File Compression Interface) and FDI(File Decompression Interface) developing package in windows?



jared_kipe
Jun 14, 2011, 09:30 AM
Is there a compressing and decompressing library in mac os like FCI(File Compression Interface) and FDI(File Decompression Interface) developing package in windows?

No, but googling around there are lots of free zip C libraries to compress say the contents of an NSData object.

kainjow
Jun 14, 2011, 10:13 AM
zlib/gzip is built-in to OS X: http://www.cocoadev.com/index.pl?NSDataCategory

jared_kipe
Jun 14, 2011, 01:00 PM
zlib/gzip is built-in to OS X: http://www.cocoadev.com/index.pl?NSDataCategory

Guess I should have said wrappers.

Sydde
Jun 14, 2011, 04:22 PM
I believe Apple's tool of choice is xarlib, which is not strictly for compression but is very good for handling xar archives, if that fits your needs. .pkg files are now xar archives rather than the folder bundles they used to be, and chances are, that is the direction they will eventually go with .app files.