Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: "Alastair J.Houghton" <email@hidden>
- Date: Thu, 16 Oct 2003 11:30:14 +0100
On Thursday, October 16, 2003, at 12:47 am, Dustin Voss wrote:
On Tuesday, October 14, 2003, at 11:50 PM, Stefan Fisk wrote:
Hi!
how do i handle extracting .zip from within a cocoa application? i've
got a bunch .zip files each with a .gba file in them (there might be
other files in the archive to, but those should just be ignored).
What i want is to read the .gba file to a buffer.
You need a ZIP library. You might try Googling for one, or maybe you
can roll your own with PkWare's specification:
http://www.pkware.com/products/enterprise/white_papers/appnote.html
OS X comes with a library called zlib, but that can only handle one
compression method and doesn't understand the file format.
Probably best to have a look at the infozip web pages at
http://www.info-zip.org/pub/infozip/
infozip, which is where zlib originated, is a free PKZIP compatible
.zip archiver, with source code, under a BSD-like license.
BTW, the infozip "zip" and "unzip" are installed on OS X already, and
have some switches that you could probably use (like the "-p" switch
on unzip, which extracts the data from the zip file to a pipe) if you
are prepared to use an external utility to do the decompression.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.