• 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: which temp dir to use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which temp dir to use?


  • Subject: Re: which temp dir to use?
  • From: Robert Claeson <email@hidden>
  • Date: Sat, 23 May 2009 13:10:15 +0200


On 23 May 2009, at 12:43, Nick Rogers wrote:

Hi,
NSTemporaryDirectory(), returns something like /var/temp/we/weOIDM +mck............
Whereas I want to store files at a place with a fixed path.


So where should I save temp files? and how can I get that path programatically everytime?

Use the C library function mkstemp() instead. You specify a template for what the name should look like, including the directory, and get an ordinary Unix file descriptor back.


Robert

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >which temp dir to use? (From: Nick Rogers <email@hidden>)

  • Prev by Date: which temp dir to use?
  • Next by Date: Document Types
  • Previous by thread: which temp dir to use?
  • Next by thread: Re: which temp dir to use?
  • Index(es):
    • Date
    • Thread