• 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: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3


  • Subject: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
  • From: Sean McBride <email@hidden>
  • Date: Mon, 03 Jun 2013 12:58:26 -0400
  • Organization: Rogue Research Inc.

On Mon, 3 Jun 2013 01:17:38 -0700, Quincey Morris said:

>The sample code tries to create a subdirectory inside the directory
>pointed to by NSTemporaryDirectory(). If this code is running in the
>context of an app sandbox, then there should be no problem creating a
>subdirectory in its temp dir. If the code is running in (say) a
>background worker process, then it should have its own temp dir, and
>there should still be no problem.
>
>All of which makes me wonder if NSTemporaryDirectory() just isn't
>available in the worker process, for some non-apparent reason. In that
>case, isn't there a Unix-ey temp dir to use instead (/var/something or /
>usr/something)?

NSTemporaryDirectory() is an old path-based API.  Perhaps the newer URL-based APIs (URLForDirectory:inDomain:appropriateForURL:create:error:) might return a more appropriate temp directory...

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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


  • Follow-Ups:
    • Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
      • From: Quincey Morris <email@hidden>
References: 
 >Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3 (From: Kyle Sluder <email@hidden>)
 >Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3 (From: Quincey Morris <email@hidden>)

  • Prev by Date: NSArrayController Added /Removed Objects
  • Next by Date: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
  • Previous by thread: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
  • Next by thread: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
  • Index(es):
    • Date
    • Thread