/Objective-Zip

An object-oriented friendly wrapper library for ZLib and MiniZip, in Objective-C for iOS and OS X

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Objective-Zip

Introduction

Objective-Zip is a small Objective-C library that wraps ZLib and MiniZip in an object-oriented friendly way.

What is contained here

The source repository contains a sample application with full sources for ZLib, MiniZip and Objective-Zip, together with a unit test UI. The versions included are:

  • 1.2.8 for ZLib.
  • 1.1 for MiniZip.
  • latest version for Objective-Zip.

Please note that ZLib and MiniZip are included here only to provide a complete and self-contained package, but they are copyrighted by their respective authors and redistributed on respect of their software license. Please refer to their websites (linked above) for more informations.

Getting started

Please see Getting Started.

License

The library is distributed under the New BSD License.

Version history

Version 0.8.3:

  • Finally used correctly the 64 bit APIs. Thanks to Nathan Moinvaziri for advicing.
  • Updated test code to zip & unzip up to 5 GB.
  • Added tests with unzip & check of zip files create with Mac OS X 10.8 and Windows 7.

Version 0.8.2:

  • Updated ZLib to 1.2.8
  • Updated MiniZip to Nathan Moinvaziri's Version (thanks Sergio for the suggestions)
  • Added test code to zip & unzip up to (slighlty less than) 4 GB: the library is able to create and expand files up to 4,293,387,000 bytes (compressed); use the test with caution, requires 4 GB of free space and around 10 minutes on the iOS simulator

Version 0.8.1:

  • Added support for ARC through Nick Lockwood's ARC Helper

Version 0.8:

  • Updated ZLib to 1.2.7
  • Updated MiniZip to 1.1
  • Added method to get file name from a ZipFile instance

Version 0.7.3:

  • Fixed memory leak in test app

Version 0.7.2:

  • Added variant of writeFileInZipWithName that accepts also a file date
  • Fixed bug with date handling

Version 0.7.1:

  • Fixed a bug in creation of an encrypted zip file

Version 0.7.0:

  • Initial public beta release

Compatibility

Version 0.8.3 has been tested with iOS from 5.1 to 6.1, but should be compatible with earlier versions too. Le me know of any issues that should arise.