• 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: Best practice for creating a temporary file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Best practice for creating a temporary file (From: Jens Alfke <email@hidden>)
 >Re: Best practice for creating a temporary file (From: Quincey Morris <email@hidden>)
 >Re: Best practice for creating a temporary file (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: My services in my own app
  • Next by Date: Re: Best practice for creating a temporary file
  • Previous by thread: Re: Best practice for creating a temporary file
  • Next by thread: Re: Best practice for creating a temporary file
  • Index(es):
    • Date
    • Thread