• 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: Question about the Foundation Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about the Foundation Framework


  • Subject: Re: Question about the Foundation Framework
  • From: Michael Ash <email@hidden>
  • Date: Fri, 6 Mar 2009 00:05:03 -0500

On Thu, Mar 5, 2009 at 3:45 PM, Steve Shepard <email@hidden> wrote:
> On Thu, Feb 19, 2009 at 7:36 AM, Michael Ash <email@hidden> wrote:
>>
>> If you're looking for more information, note that NSTemporaryDirectory
>> is essentially equivalent to /tmp on a normal UNIX system
>
> This is not quite true.
>
> On Leopard, the dirhelper utility deletes files from
> NSTemporaryDirectory that were last accessed more than three days ago;
> if a user leaves your app running for more than 3 days, dirhelper will
> happily delete files out from under it.
>
> See http://www.cocoabuilder.com/archive/message/cocoa/2009/1/15/227830
>
> Unfortunately, this makes NSTemporaryDirectory unusable for my
> purposes as I need the data to be around for the lifetime of the app.

Nothing guarantees that files in /tmp will remain around forever
either. If your app needs these files to stick around, keep them open.

Mike
_______________________________________________

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: 
 >Re: Question about the Foundation Framework (From: Steve Shepard <email@hidden>)

  • Prev by Date: Re: [Q] NSObject's poseAsClass - Replacement?
  • Next by Date: Re: mouseUp event for NSSlider
  • Previous by thread: Re: Question about the Foundation Framework
  • Next by thread: Thread usage : Main thread interrupting secondary thread
  • Index(es):
    • Date
    • Thread