Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-15-2008, 02:58 AM   #1 (permalink)
New Member
 
Join Date: May 2008
Location: jordan
Age: 32
Posts: 7
abuarja is an unknown quantity at this point
Send a message via MSN to abuarja
Default zip/unzip files on iPhone , how i can do that ?

Hi All
how i can zip/unzip files on iphone , can do that using iPhone apple SDK ?

Thanks ,,
abuarja is offline   Reply With Quote
Old 05-15-2008, 11:52 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
jeff_lamarche is an unknown quantity at this point
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default Re: zip/unzip files on iPhone , how i can do that ?

Most Cocoa solutions for zipping and unzipping simply use NSPipe / NSTask to let the unix executables handle the job. I'm pretty sure that zip and unzip are not available as executabls on the iPhone, so you're probably stuck using some code such as the info-zip unzip C source code. Since objective-C is a superset of C, you can use C code no problem

http://www.info-zip.org/UnZip.html

Info-zip's implementation is very portable and should port to the iPhone just fine, though you'll have to deal with the fact that the unzip method will probably want a byte buffer and you'll probably have an NSString or an NSData, but that's not hard to deal with. If you've got it as a string, you will have to be careful about encodings, though.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read / write / create data files Xavier iPhone SDK Development 12 01-17-2011 04:02 AM
Does an app update overwrite all files? fasttech iPhone SDK Development 5 06-03-2009 04:39 AM
How to save files in a build dynamically? satyanarayanagv iPhone SDK Development 0 06-10-2008 02:33 AM
Localization: which files go where? bonehead iPhone SDK Development 3 05-13-2008 12:41 PM


» Advertisements
» Online Users: 320
5 members and 315 guests
Anwerbl, guusleijsten, HowEver, LEARN2MAKE, mottdog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,879
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0