How to Unzip a zip file in objective C??

Discussion in 'Mac Programming' started by rahulvaishnav, Jul 21, 2009.

  1. macrumors newbie

    Joined:
    Jul 16, 2009
    #1
    Hi all,

    I want to extract a zip file at particular path using Objective C on Mac OS.
    After googling I came to know that ZipArchive is the library someone has provided. But I could not compile it in Mac , I am facing errors while compiling it. Can any one please let me know some solution for Unzipping a zip file.

    I will be very thankful.

    Regards,
    Rahul Vaishnav
     
  2. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
  3. macrumors member

    Joined:
    May 28, 2008
  4. macrumors regular

    Joined:
    Oct 13, 2008
    Location:
    Achewood, CA
    #4
    zlib is part of Mac OS X, I see /usr/lib/libz.dylib and /usr/include/zlib.h. It's pretty much the de facto zip/unzip implementation.

    I'm not sure how well-documented it is, you're probably better off forking a process and getting "unzip" to do it for you.
     

Share This Page