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.
Import the header that declares the function
zLibInflate…It is probably something likeNSData+zlib.h