• 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: Compression...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compression...


  • Subject: Re: Compression...
  • From: Wade Tregaskis <email@hidden>
  • Date: Thu, 4 Mar 2004 09:47:13 +1100

i'm creating an application which will need to carry resources with it and i would like to compress them is there anything built in that i can hook into or will i have to download 3rd party source code?

The ideal compression method would be bzip2, since it offers the best compression levels of any open source libraries. Unfortunately, Apple have in past (and perhaps present) neglected to install the library on minimal OS X installations (i.e. without dev tools and/or BSD subsystem). You could always compile against the static version of the library, if you don't mind the extra bit of bloat to your program (about 60k, from memory), or if you're using an application installer anyway make sure the library is there at that point.

It is possible to license the StuffIt engine, or various parts of, for compilation into your program. It is expensive, though, I believe. I've noticed as of the latest version of StuffIt (8) they have started offering a framework which provides access to their library for basic compression/expansion operations. The problem with this approach is that their library is rather big, you can't rely on it being installed and thus would have to bundle it with your app, and I believe you need a license from Aladdin to distribute said library.

The other suggestion put forward - to use zlib - is okay, but doesn't offer very good compression. The advantage is that the library is installed by default on all Mac OS X systems, so you won't have to worry about that aspect. Personally I'd rather just statically link against the bzip2 library, but perhaps your preference differs.

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.


References: 
 >Compression... (From: email@hidden)

  • Prev by Date: Re: Has anyone used DAVKit?
  • Next by Date: Re: NSTextStorage: Deadlock
  • Previous by thread: Re: Compression...
  • Next by thread: Re: Compression...
  • Index(es):
    • Date
    • Thread