Re: programmatically decompress lzw data
Re: programmatically decompress lzw data
- Subject: Re: programmatically decompress lzw data
- From: Joe Zobkiw <email@hidden>
- Date: Thu, 4 Sep 2003 14:05:16 -0400
>
what's the best / simplest way to decompress some data that has been
>
compressed using the lzw method using cocoa/obj-c code?
You can always wrap the uncompress command-line application (see man
uncompress) using NSTask/NSPipe as is commonly done. If you truly want
source code within your application instead, you can find lots of
sample source (in a variety of languages) for LZW by doing a Google
search that will most likely compile with little trouble. It is my
understanding that the patent for LZW expired this year but I'm not
sure of any legal ramifications of using found source code unless you
find some that is in the public domain, etc.
You can download free sample source code (see chapter 13) for an
example of wrapping a command-line application that you can probably
extend easily enough here:
http://www.triplesoft.com/macosx/
Hope this helps.
<joe>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.