Re: Best practice for creating a temporary file
Re: Best practice for creating a temporary file
- Subject: Re: Best practice for creating a temporary file
- From: Kyle Sluder <email@hidden>
- Date: Tue, 02 Sep 2014 20:06:00 -0500
On Tue, Sep 2, 2014, at 06:10 PM, Jens Alfke wrote:
>
> > On Sep 2, 2014, at 4:05 PM, Quincey Morris <email@hidden> wrote:
> >
> > I get a URL to a new folder in the private (secure) temporary directory, and *not* in the parent of ‘importURL’. I don’t know why you’re seeing something different.
>
> This is on iOS. (On Mac OS I do see the file appear in the temporary
> directory of the appropriate volume.)
>
> I suppose I could conditionalize my code and use NSTemporaryDirectory()
> on iOS, since there won't be multiple volumes there.
Eh… I'd consider using ItemReplacementDirectory anyway. They've already
changed the way containers are organized at least once (splitting the
Documents directory from the app bundle), so I'd rather insulate myself
from any potential changes in the relationship between the Documents
directory and Library.
Who knows, maybe next week we'll get support for removable SD cards.
(*laugh*)
--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