• 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 13:51:16 -0400
  • Organization: Rogue Research Inc.

On Mon, 3 Jun 2013 10:44:24 -0700, Quincey Morris said:

>> Note: The /tmp directory is not accessible from sandboxed apps. You
>must use the NSTemporaryDirectory function to obtain a temporary
>location for your app’s temporary files.
>
>That seems to answer your comment (NSTemporaryDirectory() does seem to
>be the right API) and Kyle's last comment (sandboxing doesn't
>intrinsically disable file writing -- it merely restricts places where
>files can be written without entitlements to a few known locations).

Ouch.  In fact, the word "must" is troubling.  I'm using URLForDirectory:inDomain:appropriateForURL:create:error: with NSItemReplacementDirectory successfully with App Sandbox.  Hopefully they mean "must" as opposed to hardcoding /tmp.

>The deeper question is whether a spotlight worker process is running in
>an *app* sandbox at all, or whether it has some other kind of security
>context.

Indeed.

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: "Cianflone, Chris" <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>)
 >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>)
 >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: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
  • Next by Date: Re: NSArrayController Added /Removed Objects
  • 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