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