HurkNburkS
HurkNburkS

Reputation: 5510

How to decompress zlib NSData

I hve some compressed Zlib NSData that I would like to unzip or 'inflate' etc but I am getting an error on the following code

NSData* originalData = [compressedData zlibInflate];

This bit of code gives me this error

No visible @interface for 'NSData' declares the selector 'zlibInflate'

I have no idea how to fix it, I have looked around but cannot find anything... Any help would be greatly appreciated.

FILES:

http://blakeseely.com/svn/public/SniperKit/trunk/Additions/NSData+CocoaDevUsersAdditions.h

http://blakeseely.com/svn/public/SniperKit/trunk/Additions/NSData+CocoaDevUsersAdditions.m

These are the two files you need to add to your project and reference where you need to use them.

Upvotes: 0

Views: 1627

Answers (1)

borrrden
borrrden

Reputation: 33421

Import the header that declares the function zLibInflate...It is probably something like NSData+zlib.h

Upvotes: 2

Related Questions