• 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: Shaun Wexler <email@hidden>
  • Date: Sat, 17 Dec 2005 06:38:02 -0800

On Dec 17, 2005, at 4:42 AM, j o a r wrote:

On 17 dec 2005, at 12.56, Markus Hitter wrote:

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).

You should probably use one of the dedicated API:s for returning that directory, for example:

NSString *tmpPath = NSTemporaryDirectory();

That won't return @"/tmp"; it's something like @"/private/var/tmp/ folders.501/TemporaryItems", but more-or-less guaranteed to be world- writable (on a writable file system).
--
Shaun Wexler
MacFOH
http://www.macfoh.com

The Unix method of sex:
unzip; strip; touch; grep; finger; mount; fsck; more; yes; umount; sleep;


_______________________________________________
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: Uli Kusterer <email@hidden>
References: 
 >Using Zip executable in Cocoa Application (From: Rick Langschultz <email@hidden>)
 >Re: Using Zip executable in Cocoa Application (From: Markus Hitter <email@hidden>)
 >Re: Using Zip executable in Cocoa Application (From: j o a r <email@hidden>)

  • Prev by Date: Re: Using Zip executable in Cocoa Application
  • Next by Date: Gui-less daemon based on NSFileHandle
  • Previous by thread: Re: Using Zip executable in Cocoa Application
  • Next by thread: Re: Using Zip executable in Cocoa Application
  • Index(es):
    • Date
    • Thread