RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3
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