All

On 30/10/2012, at 12:44 AM, cocoa-dev-requ...@lists.apple.com wrote:
> From: Jens Alfke
> Subject: Re: zlib, objective-zip, NSDataCategory
> Date: 30 October 2012 12:44:37 AM AWST
> To: Michael Brian Bentley
> Cc: cocoa-dev@lists.apple.com
> 
> 
> 
> On Oct 25, 2012, at 3:01 PM, Michael Brian Bentley <bent...@crenelle.com> 
> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to