• 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: NSFileManager, 10.3.x and /tmp: bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager, 10.3.x and /tmp: bug?


  • Subject: Re: NSFileManager, 10.3.x and /tmp: bug?
  • From: John Stiles <email@hidden>
  • Date: Sun, 16 Jan 2005 09:07:26 -0800

I think you might want FSFindFolder. It will return a path to "/tmp/501/Temporary Items/", and guarantees that the path it gives you exists.
You will need to call FSRefMakePath to convert its return value to a path.



On Jan 16, 2005, at 8:40 AM, The Karl Adam wrote:

exactly, you don't really need the 501 part and you may not even be
able to write to it. Also the function doesn't necessarily return just
/tmp last I tried.

-Karl

On Sun, 16 Jan 2005 16:26:49 +0100, Stéphane Sudre <email@hidden> wrote:

On dimanche, janvier 16, 2005, at 04:19 PM, The Karl Adam wrote:

Perhaps because your supposed to be using NSTemporaryDirectory(), it's
in the AppKit Functions IIRC.

This function just returns @"/tmp".

This would just remove the hardcoded path.


 _______________________________________________
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

_______________________________________________ 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: NSFileManager, 10.3.x and /tmp: bug?
      • From: Jim Correia <email@hidden>
References: 
 >Re: NSFileManager, 10.3.x and /tmp: bug? (From: The Karl Adam <email@hidden>)
 >Re: NSFileManager, 10.3.x and /tmp: bug? (From: Stéphane Sudre <email@hidden>)
 >Re: NSFileManager, 10.3.x and /tmp: bug? (From: The Karl Adam <email@hidden>)

  • Prev by Date: Re: Value transformers and app delegates
  • Next by Date: Re: NSBrowser "smearing"
  • Previous by thread: Re: NSFileManager, 10.3.x and /tmp: bug?
  • Next by thread: Re: NSFileManager, 10.3.x and /tmp: bug?
  • Index(es):
    • Date
    • Thread