• 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: "Cianflone, Chris" <email@hidden>
  • Date: Wed, 05 Jun 2013 15:58:21 +0000
  • Thread-topic: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

Just an FYI that we have opened a TSI on this.  I'll let you know the details once we sort this out with Apple.

Thanks,
Chris
________________________________________
From: cocoa-dev-bounces+ccianflone=email@hidden [cocoa-dev-bounces+ccianflone=email@hidden] on behalf of Sean McBride [email@hidden]
Sent: Monday, June 03, 2013 12:51 PM
To: Quincey Morris
Cc: email@hidden
Subject: Re: creating temp files or temp folders in standard temp file  locations in mdimporter on Mac OS X 10.8.3

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


_______________________________________________

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: 
 >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>)
 >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>)

  • Prev by Date: Re: Layout on Mini is broken
  • Next by Date: Re: Layout on Mini is broken
  • 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: NSSharingService and default mail client
  • Index(es):
    • Date
    • Thread