• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Just van Rossum <email@hidden>
  • Date: Thu, 16 Oct 2003 12:48:49 +0200

Dustin Voss wrote:

> > how do i handle extracting .zip from within a cocoa application?
> > i've got a bunch .zip files each with a .gba file in them (there
> > might be other files in the archive to, but those should just be
> > ignored). What i want is to read the .gba file to a buffer.
>
> You need a ZIP library. You might try Googling for one, or maybe you
> can roll your own with PkWare's specification:
> http://www.pkware.com/products/enterprise/white_papers/appnote.html
>
> OS X comes with a library called zlib, but that can only handle one
> compression method and doesn't understand the file format.

Alternatively you could do it with Python (as an external process): it
comes with a module called "zipfile" that allows you to extract files
from zipfiles:

http://www.python.org/doc/2.2/lib/module-zipfile.html

Just
_______________________________________________
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: 
 >Re: (no subject) (From: Dustin Voss <email@hidden>)

  • Prev by Date: is unzip installed by default?
  • Next by Date: No Result Obtained When WebServices Is Called From A Cocoa Client [uses WSMakeStubs]
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread