• 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: Using Zip executable in Cocoa Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Zip executable in Cocoa Application


  • Subject: Re: Using Zip executable in Cocoa Application
  • From: Markus Hitter <email@hidden>
  • Date: Sat, 17 Dec 2005 12:56:20 +0100


Am 16.12.2005 um 17:01 schrieb Rick Langschultz:

I have included a custom executable in my Cocoa Application named zip which is the standard command line utility bundled with Mac OS X Tiger.

Any reason why you don't want to use the one installed with the OS?

The file is meant to zip the contents of a temporary folder in the ~/temp/somefolder.

Not sure wether you make your users happy if you add a folder for your application specific stuff in such a random location. For temporary stuff, /tmp is a good choice and you can trust for it to exist, to be writeable and almost trust for it to be local (unlike Home).

Is there any known documentation about doing this?

The quickest, most simple way:

err = system("rm -f /tmp/somefolder.zip; cd /path/to/my/sourcefolder && /usr/bin/zip -r /tmp/somefolder.zip myfiles*");


NSTask

As suggested by others already, recommendable if you want to interact with the executable.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Using Zip executable in Cocoa Application
      • From: "a.d. jensen" <email@hidden>
    • Re: Using Zip executable in Cocoa Application
      • From: j o a r <email@hidden>
References: 
 >Using Zip executable in Cocoa Application (From: Rick Langschultz <email@hidden>)

  • Prev by Date: [Solved] Custom NSPopUpButton and Cell
  • Next by Date: Re: Best way to implement performant Interprocess Communication
  • Previous by thread: Re: Using Zip executable in Cocoa Application
  • Next by thread: Re: Using Zip executable in Cocoa Application
  • Index(es):
    • Date
    • Thread