Re: ZipBrowser

Eric Gorr <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Jan 4, 2010, at 5:47 PM, Christiaan Hofman wrote:

> 
> On Jan 4, 2010, at 19:15, Eric Gorr wrote:
> 
>> I found this sample code at:
>> 
>> http://developer.apple.com/mac/library/samplecode/ZipBrowser/index.html
>> 
>> and as I was scanning through it, I noticed that the zip file was being read as raw data using offsets as defined by the zip file specification.
>> 
>> Searching through the Cocoa API, I didn't see any formal api for reading or writing zip files.
>> 
>> I was wondering if anyone was aware of a framework for reading and writing zip files or do I need to roll my own code to do this based on the specification found at
>> 
>> http://www.pkware.com/documents/casestudies/APPNOTE.TXT
>> 
>> (Yes, I know I could probably communicate with the shell and use the zip utility directly, but, for the moment, I am interested in a framework that has implemented the zip file specification.)
>> 
>> Thank you.
> 
> I wouldn't use the shell. I don't think there's an Obj-C framework doing zip, but you can use zlib. There's sample code to embed it in Obj-C, e.g. http://www.cocoadev.com/index.pl?NSDataCategory.


Ya, I wouldn't use the shell either...

thanks. That is handy.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.