• 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-dev Digest, Vol 9, Issue 751
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 9, Issue 751


  • Subject: Re: Cocoa-dev Digest, Vol 9, Issue 751
  • From: Glen Low <email@hidden>
  • Date: Tue, 30 Oct 2012 20:07:00 +0800

All

On 30/10/2012, at 12:44 AM, email@hidden wrote:
> From: Jens Alfke
> Subject: Re: zlib, objective-zip, NSDataCategory
> Date: 30 October 2012 12:44:37 AM AWST
> To: Michael Brian Bentley
> Cc: email@hidden
>
>
>
> On Oct 25, 2012, at 3:01 PM, Michael Brian Bentley <email@hidden> wrote:
>
>> I would like to work with zlib using preset dictionaries, and was searching around for a good place to start working with the library in objective c. I've been looking at Objective-Zip, and at cocoadev.com's NSDataCategory at http://cocoadev.com/wiki/NSDataCategory.
>
>
> I tend to use the GTM (Google Toolkit for Mac) wrapper.
> Another library was just announced here two days ago:

That would be my library. I have some private classes there that might be of help:

ZZDeflateOutputStream -- a NSOutputStream that deflates bytes from a NSFileHandle.
ZZInflateInputStream -- a NSInputStream that inflates bytes from a NSData (typically this would be memory-mapped from your file).

Quite a few Cocoa API's use NSStream's e.g. XML parsing, plist loading.

They are wrappers around the zlib calls.

There's currently no option for presetting dictionaries but you could probably hack it in.

https://github.com/pixelglow/zipzap

Cheers
G.


_______________________________________________

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

  • Prev by Date: Re: ARC conversion help - CFErrorRef* and NSError**
  • Next by Date: Re: iOS 6 changes in CATextLayer text drawing
  • Previous by thread: Re: ARC conversion help - CFErrorRef* and NSError**
  • Next by thread: CALayer still has no constraints on iOS
  • Index(es):
    • Date
    • Thread