• 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: Cocoa framework or Object class to uncompress files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa framework or Object class to uncompress files


  • Subject: Re: Cocoa framework or Object class to uncompress files
  • From: Markus Spoettl via Cocoa-dev <email@hidden>
  • Date: Tue, 25 Oct 2022 09:12:58 +0200

On 10/25/22 3:45 AM, Carl Hoefs via Cocoa-dev wrote:
My iOS app downloads a gzip'd data file into its sandbox that the app needs to
unzip
and process. I don't see anything in Cocoa (such as NSFileManager) that
addresses
uncompressing files. Is there a way?

(BTW, I tried some ancient 3rd party code called ZipArchive but it always fails
trying
to parse the zipped file.)

I'm hoping there's a built-in solution or framework that I'm just overlooking.

I'm using an NSData extension that uses <zlib.h>:

https://github.com/schacon/igithub/blob/master/CocoaGit/Util/NSData+Compression.m

Is very easy to use and works very well. You need to add "-lz" to the "Other Linker Flags" linker option in the target build settings of your project.

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cocoa framework or Object class to uncompress files
      • From: Carl Hoefs via Cocoa-dev <email@hidden>
References: 
 >Cocoa framework or Object class to uncompress files (From: Carl Hoefs via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Cocoa framework or Object class to uncompress files
  • Next by Date: Re: Cocoa framework or Object class to uncompress files
  • Previous by thread: Re: Cocoa framework or Object class to uncompress files
  • Next by thread: Re: Cocoa framework or Object class to uncompress files
  • Index(es):
    • Date
    • Thread