drodriguez / nuzip forked from timburks/nuzip

An Objective-C wrapper for minizip to allow it to be easily called from Nu and Objective-C programs.

This URL has Read+Write access

Daniel Rodríguez Troitiño (author)
Sat Jun 27 07:09:27 -0700 2009
nuzip / README
100644 47 lines (30 sloc) 1.381 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
NuZip is a simple Objective-C wrapper around Gilles Vollant's minizip.
It was originally created to allow Nu-based applications to unpack
zip files on platforms where command-line zip and unzip tools
were not available.
 
REQUIREMENTS
 
To use the current build system, NuZip requires Nu and nuke.
But it is also possible to add the NuZip sources to an
existing Xcode project and adding -lz to the linker flags.
 
USAGE
 
NuZip currently has a trivially simple interface, methods
called "zip:" and "unzip:" that take a single argument,
a string that would correspond to the command-line arguments
given to the minizip and miniunz tools. The additional "-q"
option disables all printing and should be specified in
embedded applications.
 
AN EXAMPLE
 
To unzip an archive named "MyArchive.zip" into
a directory called "my_directory", use the following call
from Nu:
 
(NuZip unzip:"MyArchive.zip -d my_directory")
 
To make the same call from Objective-C, use the following:
 
[NuZip unzip:@"MyArchive.zip -d my_directory"];
 
BUILD AND TEST
 
To build and test on a Mac OS X system with Nu installed,
simply type "nuke test" in the project directory.
 
AUTHOR
 
The NuZip wrapper was written by Tim Burks but the core of the
system, minizip, was created by Gilles Vollant.
 
The NuZip wrapper is released under the Apache License, version 2.0.
 
Copyright 2008, Neon Design Technology, Inc.