Re: Question about the Foundation Framework
Re: Question about the Foundation Framework
- Subject: Re: Question about the Foundation Framework
- From: Steve Shepard <email@hidden>
- Date: Thu, 5 Mar 2009 13:31:00 -0800
On Thu, Mar 5, 2009 at 1:06 PM, Bill Bumgarner <email@hidden> wrote:
> Then touch the files every 24 hours or so?
That would work. Of course you'd also have to register for sleep
notifications in case your user closed the laptop lid and left it
closed for more than three days, and you'd have to convince yourself
that you'd get the wake notification before the system level utilities
run.
> In general any cache type data
> should be stuffed in one of the cache locations (unless you really want the
> data to self destruct after reboot).
In my case, it isn't cache data, it is the working copy--the project
data from a zip file.
> Hopefully, your app is also hardened against the data disappearing.
Yes, it recognizes when data is deleted out from under it and notifies
the user :-)
Note that from 10.0 until Leopard, the data in NSTemporaryDirectory
wasn't purged until you rebooted your system and the docs said ""Files
put in the temporary directory may be moved to the Trash in a
'Recovered Files' directory when the user's system is restarted. You
should therefore ensure that you delete temporary files before your
application terminates."
Now the system potentially removes the files for you before your
application terminates.
-Steve
_______________________________________________
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