• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ZIP archives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ZIP archives


  • Subject: Re: ZIP archives
  • From: Ryan Britton <email@hidden>
  • Date: Tue, 25 Jul 2006 16:02:40 -0700

Bottom line: There is no library support for the full ZIP file specification. Zlib is included with the system, but it has the limitation of only being able to process single files directly. You'll either need to write your own code (I'm aware of no public implementations) or wrap something such as ditto and incur the process-starting overhead.

I am working on implementing the ZIP standard for my own needs in a framework and may make that framework public at some point, but it is not nearly complete.

ZIP Spec: http://www.pkware.com/business_and_developers/developer/ popups/appnote.txt


On Jul 25, 2006, at 3:44 PM, Michael Hall wrote:


On Jul 25, 2006, at 5:24 PM, Matt Mashyna wrote:

You need to
make a function to get the file time and attributes, and a function to
calculate the MacBinary CRC.



I thought someone a while back had indicated a semi-standard wrapper for zlib zip access in Cocoa. I might be misremembering.
Nitpicking. The CRC16 or more probably CRC32 are included in the zip spec's I think and have nothing to do with MacBinary. That might be added if you were supporting Classical era resource forks. For example a 3rd party shareware package called ZipIt used to encode the file signature meta information and resource fork data using MacBinary in the user field of the zip file header.
I did a classical zlib port for java that supported the ZipIt type files.



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >ZIP archives (From: Mike Abdullah <email@hidden>)
 >Re: ZIP archives (From: "Matt Mashyna" <email@hidden>)
 >Re: ZIP archives (From: Michael Hall <email@hidden>)

  • Prev by Date: Will a subclass of NSActionCell work on 10.2?
  • Next by Date: Re: Printing Core Data
  • Previous by thread: Re: ZIP archives
  • Next by thread: Re: ZIP archives
  • Index(es):
    • Date
    • Thread