Re: How to prevent a temp folder from being deleted
Re: How to prevent a temp folder from being deleted
- Subject: Re: How to prevent a temp folder from being deleted
- From: Kyle Sluder <email@hidden>
- Date: Wed, 26 Mar 2014 15:50:55 -0700
On Wed, Mar 26, 2014, at 03:08 PM, Mills, Steve wrote:
> I'm looking for a way to prevent the folder from being deleted either by
> the OS or by the user while the app is still running. As a test, I set
> the NSFileBusy and NSFileImmutable flags on a file in our temp folder,
> but I was still able to move the folder to the trash and empty it. So
> that didn't work.
Wouldn't it be better to stop fighting the system and put your files in
a more appropriate place, like inside the document wrapper or in your
Application Support directory?
--Kyle Sluder
_______________________________________________
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